Skip to content

Commit acf24cd

Browse files
committed
Further improved the documentation comments
1 parent 53eb2e2 commit acf24cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/YCoreUI/Extensions/UIKit/UIView+constrainCenter.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ import UIKit
1111
extension 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
}

0 commit comments

Comments
 (0)