Skip to content

Releases: costachung/neumorphic

Inner Shadow Fix for MacOS & SoftSwitchToggleStyle Update

31 Oct 09:27
Compare
Choose a tag to compare

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

06 Jul 07:33
Compare
Choose a tag to compare

Added "Disabled" appearance in SoftDynamicButtonStyle.
Updated the SoftButtonDemoView.

Example Project Updated

19 Feb 05:03
3fa56e8
Compare
Choose a tag to compare

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

17 Feb 14:07
ffef5bb
Compare
Choose a tag to compare
  • 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

16 Feb 09:02
92137ed
Compare
Choose a tag to compare

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

15 Feb 04:00
f747e18
Compare
Choose a tag to compare

Refactoring:
Remove unused colors

Taking colorScheme automatically & Added Color extension (Color.Neumorphic)

09 Feb 04:18
7ff9913
Compare
Choose a tag to compare
  • 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

14 Dec 08:07
Compare
Choose a tag to compare

Fixed default shadow colors

Added support for Toggle Button

12 Dec 08:33
Compare
Choose a tag to compare

Two new types of ToggleStyle:
softToggleStyle()
softSwitchToggleStyle()

Minor bug fixes

18 Nov 07:35
Compare
Choose a tag to compare

The inner shadow offset was too large when the width of the shape is larger than its height.
This version fixed this issue.