File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Sources/YCoreUI/Extensions/UIKit Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,17 @@ import UIKit
1111extension UIView {
1212 /// Center alignment options
1313 public struct Center : OptionSet {
14+ /// corresponding raw value
1415 public let rawValue : UInt
1516 /// center X
1617 public static let x = Center ( rawValue: 1 << 0 )
1718 /// center Y
1819 public static let y = Center ( rawValue: 1 << 1 )
1920 /// all (both center X and center Y)
2021 public static let all : Center = [ . x, . y]
21- // initializer must be declared public to matches a (public init) requirement in protocol 'OptionSet'
22+
23+ /// Creates the new `Center` option set from the given raw value.
24+ /// - Parameter rawValue: the raw value of `Center` option set to create
2225 public init ( rawValue: UInt ) {
2326 self . rawValue = rawValue
2427 }
You can’t perform that action at this time.
0 commit comments