Avatar
omochimetaru 4/4/2019 5:03 AM
なるほど 言われてみれば
5:05 AM
The Swift Programming Language. Contribute to apple/swift development by creating an account on GitHub.
5:05 AM
/// A type that can be initialized using a color literal (e.g. /// `#colorLiteral(red: 1, green: 0, blue: 0, alpha: 1)`). public protocol _ExpressibleByColorLiteral { /// Creates an instance initialized with the given properties of a color /// literal. /// /// Do not call this initializer directly. Instead, initialize a variable or /// constant using a color literal. init(_colorLiteralRed red: Float, green: Float, blue: Float, alpha: Float) }
5:06 AM
ユーザー定義した型でもカラーリテラルに対応できるのか?w