Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed Apr 12, 2020
1 parent 349eec3 commit e919344
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/NeumorphismManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ public class NeumorphismManager: NeumorphismManagable, ObservableObject {

public func setLightColor(color: Color) {
self.lightColor = color

if !isDark {
self.color = color
}
}

public func setDarkColor(color: Color) {
self.darkColor = color

if isDark {
self.color = color
}
}

public func changeMode() {
Expand Down

0 comments on commit e919344

Please sign in to comment.