Releases: costachung/neumorphic
Inner Shadow Fix for MacOS & SoftSwitchToggleStyle Update
Fixed inner shadow on MacOS
The mask on macOS doesn't work properly with shadow.
The shadow disappear after calling the mask modifier.
Workaround Applied (Use blur instead of shadow).
SoftSwitchToggleStyle Update
Add disabled support for SoftSwitchToggleStyle.
Added "Disabled" appearance for Button
Added "Disabled" appearance in SoftDynamicButtonStyle.
Updated the SoftButtonDemoView.
Example Project Updated
Renamed the example project to neumorphic-examples.
There are two targets:
ios-example
mac-example
Auto, Light and Dark mode on both iOS and MacOS
- Updated the Mac example
What's new in this version:
- Access default neumorphic colors using Color.Neumorphic (e.g. Color.Neumorphic.main)
- Color.Neumorphic supports light and dark mode on both iOS and MacOS automatically.
- When you use default neumorphic colors and you want to set the color scheme manually, you can do it by setting Color.Neumorphic.colorSchemeType to the type you want. (e.g. Color.Neumorphic.colorSchemeType = .dark)
Fully support Auto Color Scheme on iOS and MacOS
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
Color extension to support both iOS and MacOS
Refactoring:
Remove unused colors
Taking colorScheme automatically & Added Color extension (Color.Neumorphic)
- Take the colorScheme from the system automatically (without having to explicitly update it with Neumorphic.shared.colorScheme = colorScheme)
- Added Color extension (Color.Neumorphic) for accessing neumorphic default colors.
Fixed default shadow colors
Fixed default shadow colors
Added support for Toggle Button
Two new types of ToggleStyle:
softToggleStyle()
softSwitchToggleStyle()
Minor bug fixes
The inner shadow offset was too large when the width of the shape is larger than its height.
This version fixed this issue.