Created
June 24, 2021 22:49
-
-
Save o-nnerb/d126cdb62ed837554457361de26e16e8 to your computer and use it in GitHub Desktop.
Implementation of a token for shadow with internal methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum Shadow { | |
case level1 | |
case level2 | |
case level3 | |
} | |
internal extension Shadow { | |
var x: CGFloat { ... } | |
var y: CGFloat { ... } | |
var radius: CGFloat { ... } | |
var opacity: CGFloat { ... } | |
#if os(iOS) | |
var uiColor: UIColor { ... } | |
#endif | |
#if canImport(SwiftUI) | |
@available(iOS 13, *) | |
var color: Color { ... } | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment