LoginView
class LoginView : UIView
This is login View
-
This is a
UITextField
which is used to input usernameDeclaration
Swift
@IBOutlet var usernameTextField: UITextField!
-
Undocumented
Declaration
Swift
@IBOutlet var passwordTextField: UITextField!
-
This is a
UIButton
which is used to press for logiinDeclaration
Swift
@IBOutlet var loginButton: UIButton!
-
This is a
UIButton
Declaration
Swift
@IBOutlet var backgroundView: UIButton!
-
This is a
NSLayoutConstraint
which is used for bottom bonstraintDeclaration
Swift
@IBOutlet var viewBottomConstraint: NSLayoutConstraint!
-
This is a
UIImageView
used to display a person iconDeclaration
Swift
@IBOutlet var personIcon: UIImageView!
-
This is a
UIImageView
used to display a lock iconDeclaration
Swift
@IBOutlet var lockIcon: UIImageView!
-
This is a
UIiew
Declaration
Swift
@IBOutlet var view: UIView!
-
Customise the LoginView
Declaration
Swift
func customisation()
-
Show the keyboard
Declaration
Swift
@objc func keyboardWillShow(notification: NSNotification)
-
Hide the keyboard
Declaration
Swift
@objc func keyboardWillHide(notification: NSNotification)
-
Perform when the login Button is pressed
Declaration
Swift
@IBAction func loginButtonPressed(_: Any)
-
This function will hide
LoginView
when it is being calledDeclaration
Swift
@IBAction func hideLoginView(_: Any)
-
Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file. Load
customisation
functionDeclaration
Swift
override func awakeFromNib()