Skip to content

1.2.0

Latest
Compare
Choose a tag to compare
@benlmyers benlmyers released this 30 Aug 01:29
· 4 commits to main since this release

Thanks for using ShinySwiftUI! 🎉

New Features

EnumPicker

Quickly create a Picker iterating through enum values:

// Customize view for each item
EnumPicker(selected: $selectedFruit, title: "Choose a Fruit") { fruit in
  Text("\(fruit.emoji) \(fruit.name)")
}

// Display enum's rawValue as Text for each item
EnumPicker(selected: $selectedVeggie)

Animations

Added new .slickEaseInOut(duration:) animation.

Specify your slick animation style within the .slickAnimation(...) view modifier:

myView.slickAnimation(.inOut)
myView.slickAnimation(.out, delay: 1.0, duration: 0.25)

Minor Changes

  • Added a new Line shape.
  • Renamed .reverseMask(...) to .inverseMask(...) for clarification.
  • Create an at-maximum square frame using the new .frame(max:) modifier.
  • Improved the performance of the .shortcut(...) view.
  • Added the .paddedDrawingGroup(_:) modifier to create a drawing group without clipping content.
  • The .every(_:perform:) method will now disconnect the timer on view disappear.