-
Notifications
You must be signed in to change notification settings - Fork 7
Updated to Swift 6 #12
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added @sendable to contentOffsets closure in FULayout and AnyFULayout Added Sendable to FULayout, AspectFormat, FUAlignment, FUHorizontalAlignment andFUVerticalAlignment Added @mainactor to callAsFunction and forEach on FULayout Changed maxItemWidth from var to let in FULayoutThatFits and FUViewThatFits Added @retroactive to Hashable protocol on extension to Axis.Set
…inActor.assumIsolated
…f _VariadicView_MultiViewRoot
… applied for Swift 6 Added compiler checks around the Axis.Set extension adding Hashable
…e clash with SwiftUI. Technically a breaking change but is unlikely to cause any issues as the enum cases have the same name and are likely listed without the type name in the init.
Removed @sendable requirement for AnyFULayout
…n a view first appears.
…ead of swift(<6)
…Image in control widgets Removed nonisolated from FUInterfaceOrientation init Removed MainActor.assumeIsolated from BackfaceCull Shape
…d has been removed.
Added nonisolated to animatableData in BackfaceCull to support beta 4 again. Added workaround back into _VariadicFULayoutRoot to support beta 4 again.
Updated BackfaceCull shape removing nonisolated from animatableData
Added @preconcurrency to any new @mainactor annotations to allow usage in pre concurrency projects. Removed Task in HeightReader and WidthReader as it is no longer needed to prevent crashes
Added deprecation warnings for FULayout callAsFunction and forEach methods. Fixed availability of FlippingView on non-visionOS platforms.
New backsideFlip parameter lets you pick the orientation of the back side based on how it might flip. Default is automatic. visionOS TwoSidedView flips correctly aside from a SwiftUI glitch that makes it jitter Changed visionOS to use perspectiveRotationEffect for fake 3d flipping to mach the existing SwiftUI API. Readme updated.
Added BacksideFlip to FlippingView Updated FlippingView on tvOS so all gestures and taps are excluded leaving only programmatic flips. Added PerspectiveFlippingView for fake 3d flips on visionOS Renamed TwoSidedVisionOSView to TwoSided3DView
Deprecated FULayoutThatFits and FUViewThatFits as there is no need to have a LayoutFromFULayout version of these. Deprecated ScaledContainerRelativeShape and WidgetRelativeShape as they are not needed in iOS 16 and later.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated to support Swift 6
Added
unclippedTextRenderer()Added
rotation3DEffect(back:)support for visionOS that rotates in 3d space and addedperspectiveRotationEffect(back:)to creat a perspective rotation effect on a flat view.Added
FlippingViewsupport for visionOSFixed a bug where the back side would not rotate correctly if the axis was neither horizontal nor vertical.
Added
backsideFlipparameter to all rotation views with a backside to allow for different back side orientations.Deprecated lot of old
FULayoutcode with suggestions to move to the SwiftUILayoutversions.Changed
InfoDictionary.supportedInterfaceOrientationsandAutoRotatingViewto useFUInterfaceOrientationinstead of the SwiftUIInterfaceOrientationso Sendable conformance could be added.Added Sendable conformance to various types to support swift 6 concurrency.
Removed @mainactor annotations from any SwiftUI Views as they will not be automatic.
Added @preconcurrency to any new @mainactor annotations in order to support those not using strict concurrency.
Deprecated
ScaledContainerRelativeShapeandWidgetRelativeShapeas they were only needed for a bugfix in iOS 14 and 15.Changed
Axis.Setto have @retroactive conformance toHashablewhen using the Swift 6 compiler.Updated documentation to include symbol links.