Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if os(iOS) || os(tvOS)
- import UIKit
- public typealias Color = UIColor
- #else
- import Cocoa
- public typealias Color = NSColor
- #endif
- extension Color {
- internal convenience init(hex: String) {
- // ...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement