🚀Neumorphic is a SwiftUI utility to build Neumorphism Soft UI (supports both *outer shadow and *inner shadow)
Added "Disabled" appearance in SoftDynamicButtonStyle. Updated the SoftButtonDemoView.
Renamed the example project to neumorphic-examples. There are two targets: ios-example mac-example
What's new in this version:
Using DynamicProvider to init Color on both iOS and MacOS. It works without having to include environment variable colorScheme in the SwiftUI View. When the system appearance changes, it will redraw to view automatically.
You can still change the color scheme type manually by setting Color.Neumorphic.colorSchemeType. e.g. Color.Neumorphic.colorSchemeType = .dark
Refactoring: Remove unused colors
Fixed default shadow colors
Two new types of ToggleStyle: softToggleStyle() softSwitchToggleStyle()
The inner shadow offset was too large when the width of the shape is larger than its height. This version fixed this issue.