This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if canImport(UIKit) | |
import UIKit | |
extension UIColor { | |
static var random: UIColor { | |
return UIColor( | |
red: .random(in: 0...1), | |
green: .random(in: 0...1), | |
blue: .random(in: 0...1) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UITableView.swift | |
import UIKit | |
/** | |
* Extension to provide extra capabilities to existing UITableView. | |
*/ | |
extension UITableView{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Basic Operators | |
35 + 98 | |
62 - 14 | |
50 / 10 | |
463 * 173 | |
// Types | |
var age: Int = 21 // Int = Integer = Any whole number | |
var milesCanRun: Double = 0.75 // Double = Float = Decimal Number |