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
import UIKit | |
class CheckBox: UIButton { | |
// Images | |
let checkedImage = UIImage(named: "ic_check_box")! as UIImage | |
let uncheckedImage = UIImage(named: "ic_check_box_outline_blank")! as UIImage | |
// Bool property | |
var isChecked: Bool = false { | |
didSet{ |
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
class Welcome: UIViewController { | |
@IBOutlet weak var tfEMail: TextField! | |
@IBOutlet weak var tfPassword: TextField! | |
private var activeTextField: UITextField? | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
registerForKeyboardNotifications() |
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
import Foundation | |
struct MCalendarDate { | |
let weekOfYear: Int | |
let weekday: Int | |
let day: Int | |
let month: Int | |
let year: Int | |
let date: Date |