Skip to content

0.3.0

Compare
Choose a tag to compare
@benlmyers benlmyers released this 28 Feb 00:30
· 66 commits to main since this release

Thanks for using ShinySwiftUI! 🎉

Major Changes

Mouse Tracking

Use a simple view modifier to track the position of the user's mouse in macOS.

SomeView()
  .trackingMouse { position in
    self.mousePosition = position
  }

More Transitions

Spice up your view appearance with custom transitions.

  • .turn: Flips the disappearing view upwards and rotates in the appearing view.
  • .swipe: Creates a left/right swiping motion with a light fade.
  • .pop: Creates a "pop" effect, scaling and fading the view accordingly.

Tooltip View

Add a tooltip to your view that appears automatically on hover.

SomeView()
  .withTooltip {
    Text("This is a tooltip")
  }

Minor Changes

  • .shortcut(:) now works with the esc key
  • The shortcut tooltip can now be disabled using UserDefaults key stored at ShinySwiftUI.shortcutTooltipDefaultKey