Skip to content

Commit 48b336b

Browse files
committed
Added better documentation
1 parent d4746ee commit 48b336b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CoreDataMigration-Example/Extensions/CGFloat/CGFloat+Random.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import UIKit
1111

1212
extension CGFloat {
1313

14+
// MARK: - Random
15+
1416
static func random() -> CGFloat {
1517
return CGFloat(arc4random()) / CGFloat(UInt32.max)
1618
}

CoreDataMigration-Example/Extensions/UIColor/UIColor+Hex.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import UIKit
1010

1111
extension UIColor {
1212

13+
// MARK: - Hex
14+
1315
var hexString: String {
1416
let components = self.cgColor.components
1517

CoreDataMigration-Example/Extensions/UIColor/UIColor+Random.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import UIKit
1010

1111
extension UIColor {
1212

13+
// MARK: - Random
14+
1315
static var random: UIColor {
1416
return UIColor(red: .random(), green: .random(), blue: .random(), alpha: 1.0)
1517
}

0 commit comments

Comments
 (0)