/PetalMenu

A flowering menu.

Primary LanguageSwift

PetalMenu

A flowering menu built with SwiftUI.

Using .rotationEffect and a .bouncy animation, PetalMenu expands and collapses to provide users a unique way to make a selection. Accessibility modifiers are in place to provide clear use to VoiceOver users, and hide decorative elements.

In this sample app, PetalMenu is used as a theme picker. It takes an array of colors, and a binding to a selectedColor value, and ContentView renders a background gradient based on the selection. The ColorPalette object provides arrays of Color in multicolor, warm, cool, and monochromatic styles.

Petals Showcase 001

PetalMenu.Animation.mov