Skip to content

Commit

Permalink
new auth flow: handle trying to sign in while logged in anonymously
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedk92 committed Aug 23, 2020
1 parent df383dd commit 59b36fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions liquid-swipe/Classes/LiquidSwipeContainerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
import UIKit
import pop

public protocol LiquidSwipeContainerDataSource {
public protocol LiquidSwipeContainerDataSource: AnyObject {
func numberOfControllersInLiquidSwipeContainer(_ liquidSwipeContainer: LiquidSwipeContainerController) -> Int
func liquidSwipeContainer(_ liquidSwipeContainer: LiquidSwipeContainerController, viewControllerAtIndex index: Int) -> UIViewController
}

public protocol LiquidSwipeContainerDelegate {
public protocol LiquidSwipeContainerDelegate: AnyObject {
func liquidSwipeContainer(_ liquidSwipeContainer: LiquidSwipeContainerController, willTransitionTo: UIViewController)
func liquidSwipeContainer(_ liquidSwipeContainer: LiquidSwipeContainerController, didFinishTransitionTo: UIViewController, transitionCompleted: Bool)
func liquidSwipeContainer(_ liquidSwipeContainer: LiquidSwipeContainerController, currentPageIndexChangedTo index: Int)
Expand All @@ -23,7 +23,7 @@ public protocol LiquidSwipeContainerDelegate {

open class LiquidSwipeContainerController: UIViewController {

public func advance() {
open func advance() {
btnTapped(btnNext)
}

Expand All @@ -36,12 +36,12 @@ open class LiquidSwipeContainerController: UIViewController {
}
}

public var datasource: LiquidSwipeContainerDataSource? {
public weak var datasource: LiquidSwipeContainerDataSource? {
didSet {
configureInitialState()
}
}
public var delegate: LiquidSwipeContainerDelegate?
public weak var delegate: LiquidSwipeContainerDelegate?
public private(set) var currentPageIndex: Int = 0 {
didSet {
delegate?.liquidSwipeContainer(self, currentPageIndexChangedTo: currentPageIndex)
Expand Down

0 comments on commit 59b36fe

Please sign in to comment.