ryanlintott / FrameUp

Reframing SwiftUI Views. A collection of tools to help with layout.
MIT License
214 stars 4 forks source link

FULayout and FlippingView #1

Closed ryanlintott closed 2 years ago

ryanlintott commented 2 years ago

Added FULayout protocol that can build layout views using either VariadicView or a built in .forEach function. Added custom layouts: HFlow, VFlow, HMasonry, VMasonry, VStackFULayout, HStackFULayout, and ZStackFULayout. Added a type-erasing AnyLayout. Added FlippingView and TwoSidedView. Changed .rotationMatchingOrientation view modifier to AutoRotatingView. Fixed some bugs in SmartScrollView and changed optionalScrolling and shrinkToFit defaults to true. Changed WidgetRelativeShape for iOS 16 so that it no longer makes adjustments on iPads as Apple had fixed the bug that required it. Added accessibility actions to TabMenuView actions for reselect and double tap. Fixed onReselect and onDoubleTap so they don't both trigger with a double tap. Changed onDoubleTap so it only works on the selected tab.