Skip to content

Conversation

@mickael-menu
Copy link
Member

Address build warnings introduced since bumping to iOS 15.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses build warnings introduced after bumping to iOS 15 by migrating from the deprecated CoreServices framework to the modern UniformTypeIdentifiers framework, and updating related code patterns.

Changes:

  • Migrated UTI struct from CoreServices to UniformTypeIdentifiers framework, replacing deprecated APIs with modern UTType-based implementations
  • Updated UTI initialization in DocumentTypes to use failable initializers with compactMap instead of ExpressibleByStringLiteral conformance
  • Changed DirectoryContainer enumerator iteration to use allObjects to fix iOS 15 compatibility

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
Sources/Internal/UTI.swift Complete refactoring to use UniformTypeIdentifiers framework instead of CoreServices; removed ExpressibleByStringLiteral conformance and added failable initializers
Sources/Shared/Toolkit/DocumentTypes.swift Updated to use compactMap with new failable UTI initializers instead of map with string literals
Sources/Shared/Toolkit/File/DirectoryContainer.swift Changed from direct enumerator iteration to enumerator.allObjects for iOS 15 compatibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mickael-menu mickael-menu merged commit 1e423c9 into develop Jan 27, 2026
5 checks passed
@mickael-menu mickael-menu deleted the fix/warnings branch January 27, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants