This file contains hidden or 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
class MainTabBarController: UITabBarController { | |
let mainCoordinator = MainCoordinator() | |
var home: BreathingVC! | |
var settings: SettingsVC! | |
var presets: PresetsTVC! | |
var breathSettings: BreathSettingVC! | |
override func viewDidLoad() { | |
super.viewDidLoad() |
This file contains hidden or 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
final class Toast { | |
private var parentView: UIView! | |
private var hideAfter: TimeInterval! | |
private var toastLabel: UILabel = { | |
let label = UILabel() | |
label.textColor = UIColor.black | |
label.numberOfLines = 0 |
This file contains hidden or 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
enum AttendanceType: Int { | |
case paid, free, reset | |
} | |
extension Collection where Element == AttendanceType { | |
var itemSort: [Int] { |
This file contains hidden or 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
// No Storyboards | |
// Some reasons why | |
// https://www.youtube.com/watch?v=bd2KSWLXo3A | |
// https://www.youtube.com/watch?v=U1Ub-LFIqfA | |
// https://www.youtube.com/watch?v=g6yz5oX5iWc | |
// note - was was a huge fan of SB's - but gave this approach a try... never looked back |