macOS support, FUViewThatFits, SwiftUI Layouts, FlippingView and more!
New Features:
Added macOS support
FUViewThatFits - similar to SwiftUI ViewThatFits but works in older os versions)
FULayoutThatFits - similar to FULayoutThatFits but instead picks between different layouts with the same content (and it supports animation).
HMasonry and VMasonry now support both vertical and horizontal alignments.
All FULayout parameters are now animatable
SwiftUI Layout versions of FULayout are now possible. HFlowLayout, VFlowLayout, HMasonryLayout, and VMansonryLayout added.
Any FULayout can quickly be made into a SwiftUI Layout using theLayoutFromFULayout` protocol.
LayoutThatFits will pick the first Layout that fits with the same content (and it supports animation).
Made FULayoutColumn and FULayoutRow public so others can use them in their own FULayout
Replaced Alignment with new FUAlignment in FULayout views to allow support for the new .justified alignment.
TwoSidedViewModifier added with a new .rotation3DEffect() method that takes a closure for a view to show on the back side of the view.
FlippingView added. A two-sided view that can be flipped with taps or swipes.
WidgetSize updated for latest devices
Accessory widgets added to WidgetSize and WidgetDemoFrame
Changes:
TabMenuView renamed to TabMenu
Reorganized folders grouping similar elements
Removed:
layout parameter removed from HStackFULayout, VStackFULayout, and ZStackFULayout as SwiftUI Layout was not exactly equivalent.
Bugfixes
Content offsets no longer use negative values for alignments. This ensures animations between alignments are handled correctly.
Selecting tabs is much faster for TabMenu. The reselect option will only be slow if there is also a doubleTap option. This is necessary to detect the difference between the two actions.
macOS support, FUViewThatFits, SwiftUI Layouts, FlippingView and more!
New Features:
FUViewThatFits
- similar to SwiftUI ViewThatFits but works in older os versions)FULayoutThatFits
- similar toFULayoutThatFits
but instead picks between different layouts with the same content (and it supports animation).HMasonry
andVMasonry
now support both vertical and horizontal alignments.FULayout
parameters are now animatableLayout
versions ofFULayout
are now possible.HFlowLayout
,VFlowLayout
,HMasonryLayout
, andVMansonryLayout
added.FULayout
can quickly be made into a SwiftUILayout using the
LayoutFromFULayout` protocol.LayoutThatFits
will pick the firstLayout
that fits with the same content (and it supports animation).FULayoutColumn
andFULayoutRow
public so others can use them in their ownFULayout
Alignment
with newFUAlignment
inFULayout
views to allow support for the new.justified
alignment.TwoSidedViewModifier
added with a new.rotation3DEffect()
method that takes a closure for a view to show on the back side of the view.FlippingView
added. A two-sided view that can be flipped with taps or swipes.WidgetSize
updated for latest devicesWidgetSize
andWidgetDemoFrame
Changes:
TabMenuView
renamed toTabMenu
Removed:
HStackFULayout
,VStackFULayout
, andZStackFULayout
as SwiftUI Layout was not exactly equivalent.Bugfixes
TabMenu
. Thereselect
option will only be slow if there is also adoubleTap
option. This is necessary to detect the difference between the two actions.