Skip to content

Conversation

@ryanlintott
Copy link
Owner

Updated to support Swift 6
Added unclippedTextRenderer()
Added rotation3DEffect(back:) support for visionOS that rotates in 3d space and added perspectiveRotationEffect(back:) to creat a perspective rotation effect on a flat view.
Added FlippingView support for visionOS
Fixed a bug where the back side would not rotate correctly if the axis was neither horizontal nor vertical.
Added backsideFlip parameter to all rotation views with a backside to allow for different back side orientations.
Deprecated lot of old FULayout code with suggestions to move to the SwiftUI Layout versions.
Changed InfoDictionary.supportedInterfaceOrientations and AutoRotatingView to use FUInterfaceOrientation instead of the SwiftUI InterfaceOrientation so 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 ScaledContainerRelativeShape and WidgetRelativeShape as they were only needed for a bugfix in iOS 14 and 15.
Changed Axis.Set to have @retroactive conformance to Hashable when using the Swift 6 compiler.
Updated documentation to include symbol links.

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
… 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.
…Image in control widgets

Removed nonisolated from FUInterfaceOrientation init
Removed MainActor.assumeIsolated from BackfaceCull Shape
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.
@ryanlintott ryanlintott merged commit 36235c4 into main Sep 26, 2024
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