Skip to content

Updates for compatibility with Swift 6.2 and Xcode 26 #1572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

carson-katri
Copy link
Member

@carson-katri carson-katri commented Jun 10, 2025

Known Issues

updated for Xcode 26 beta 1

  • Some modifiers are not being picked up by the code generator (such as frame or the variant of padding with no arguments)
  • You may get build errors if SwiftPM prebuilt packages are enabled, you can disable them with the following defaults command:
defaults write com.apple.dt.Xcode IDEPackageEnablePrebuilts NO

@carson-katri
Copy link
Member Author

Modifiers not being picked up by the code generator is fixed in c38215d. The issue was due to some new #if conditionals in the .swiftinterface for Swift 6.2, which weren't being opened up to check for func declarations:

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
extension SwiftUICore.View {
  #if compiler(>=5.3) && $NonescapableTypes
  nonisolated public func sheet<Item, Content>(item: SwiftUICore.Binding<Item?>, onDismiss: (() -> Swift.Void)? = nil, @SwiftUICore.ViewBuilder content: @escaping (Item) -> Content) -> some SwiftUICore.View where Item : Swift.Identifiable, Content : SwiftUICore.View
  
  #endif
  #if compiler(>=5.3) && $NonescapableTypes
  nonisolated public func sheet<Content>(isPresented: SwiftUICore.Binding<Swift.Bool>, onDismiss: (() -> Swift.Void)? = nil, @SwiftUICore.ViewBuilder content: @escaping () -> Content) -> some SwiftUICore.View where Content : SwiftUICore.View
  
  #endif
}

The modifier generator will now look inside the #if compiler(>=5.3) && $NonescapableTypes for modifier function declarations.

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.

1 participant