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 CometChatPro | |
class ConversationsVC: CometChatConversationList { | |
@IBOutlet weak var newChatButton: UIButton! | |
static func storyboardInstance() -> ConversationsVC? { | |
let storyboard = UIStoryboard(name: "Main" ,bundle: nil) | |
return storyboard.instantiateViewController(withIdentifier: "ConversationsVC") as? ConversationsVC |
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 KeyboardHandlingBaseVC: UIViewController { | |
@IBOutlet weak var backgroundSV: UIScrollView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
subscribeToNotification(UIResponder.keyboardWillShowNotification, selector: #selector(keyboardWillShowOrHide)) | |
subscribeToNotification(UIResponder.keyboardWillHideNotification, selector: #selector(keyboardWillShowOrHide)) |
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 ViewController: UIViewController { | |
@IBOutlet weak var emailTF: UnderlinedTextField! | |
@IBOutlet weak var passwordTF: UnderlinedTextField! | |
@IBOutlet weak var backgroundSV: UIScrollView! | |
static func storyboardInstance() -> Solution3VC? { | |
let storyboard = UIStoryboard(name: Storyboard.main ,bundle: nil) | |
return storyboard.instantiateViewController(withIdentifier: "Solution3VC") as? Solution3VC | |
} |
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 ViewController: UIViewController { | |
@IBOutlet weak var pinTF: UnderlinedTextField! | |
static func storyboardInstance() -> Solution4VC? { | |
let storyboard = UIStoryboard(name: Storyboard.main ,bundle: nil) | |
return storyboard.instantiateViewController(withIdentifier: "Solution4VC") as? Solution4VC | |
} | |
override func viewDidLoad() { |
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 ViewController: UIViewController { | |
@IBOutlet weak var emailTF: UnderlinedTextField! | |
@IBOutlet weak var passwordTF: UnderlinedTextField! | |
static func storyboardInstance() -> Solution2VC? { | |
let storyboard = UIStoryboard(name: Storyboard.main ,bundle: nil) | |
return storyboard.instantiateViewController(withIdentifier: "Solution2VC") as? Solution2VC | |
} | |
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 ViewController: UIViewController { | |
@IBOutlet weak var emailTF: UnderlinedTextField! | |
@IBOutlet weak var passwordTF: UnderlinedTextField! | |
static func storyboardInstance() -> Solution1VC? { | |
let storyboard = UIStoryboard(name: Storyboard.main ,bundle: nil) | |
return storyboard.instantiateViewController(withIdentifier: "Solution1VC") as? Solution1VC | |
} | |