PageController
class PageController : UIViewController
Initial onborading controller
-
PageController model
Declaration
Swift
public let pages: [Page]
-
PageController view
Declaration
Swift
let pageView: PageView
-
Initial load
Declaration
Swift
override func viewDidLoad()
-
viewWillAppear
Declaration
Swift
override func viewWillAppear(_ animated: Bool)
-
preferredStatusBarStyle
Declaration
Swift
override var preferredStatusBarStyle: UIStatusBarStyle { get }
-
NextController on success
Declaration
Swift
public func nextController()
-
Error handling
Declaration
Swift
public func handling(_ error: Error?)
-
numberOfItemsInSection
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
-
cellForItemAt
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
-
collectionViewLayout
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
-
collectionViewLayout
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat
-
forItemAt
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath)
-
scrollViewWillEndDragging
Declaration
Swift
func scrollViewWillEndDragging(_ scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>)
-
prepareLoginPage
Declaration
Swift
func prepareLoginPage(_ pageNumber: Int)
-
isLoginPage
Declaration
Swift
func isLoginPage(_ bool: Bool, _ cell: PageCell)
-
Event listener for sign in button
Declaration
Swift
func signInBtn(email: String?, password: String?)
Parameters
email
the entered email
password
the entered password
Return Value
Void
-
Event listener for sign up button
Declaration
Swift
func registerBtn(name: String?, email: String?, password: String?)
Parameters
name
the user name
email
the entered email
password
the entered password
Return Value
Void
-
Listener for fogot button
Declaration
Swift
func forgotPasswordBtn()
-
Listener for Skip button
Declaration
Swift
func skipBtn()
-
FBSDKLoginKit login delegate
Declaration
Swift
func loginButton(_ loginButton: FBSDKLoginButton!, didCompleteWith result: FBSDKLoginManagerLoginResult!, error: Error!) -> <<error type>>
-
FBSDKLoginKit logout delegate
Declaration
Swift
func loginButtonDidLogOut(_ loginButton: FBSDKLoginButton!) -> <<error type>>
-
Handle Keyboard Dismissal
Declaration
Swift
func scrollViewWillBeginDragging(_ scrollView: UIScrollView)
-
Handle keyboard responsiveness
Declaration
Swift
func textFieldShouldReturn(_ textField: UITextField) -> Bool