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
public typealias ReloadBlock = ([IndexPath]) -> Void | |
public protocol DataSource { | |
associatedtype ModelType | |
var reloadBlock: ReloadBlock? { get set } | |
var numberOfSections: Int { get } | |
func numberOfItems(in section: Int) -> Int |
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 BackAnimationController: NSObject { | |
private let duration = 0.35 | |
private let fromContainerView = UIView(frame: .zero) | |
private let toContainerView = UIView(frame: .zero) | |
private let dimmingView = DimmingView(frame: .zero) | |
private let shadowImageView = UIImageView(frame: .zero) | |
} |
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 | |
import Anchorage | |
protocol KeyboardAdjustable { | |
} | |
extension KeyboardAdjustable where Self: UIViewController { | |
var keyboardLayoutGuide: UILayoutSupport { | |
return keyboardLayoutGuideObject |
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 | |
import Anchorage | |
protocol MessageDisplayable { | |
func configureMessageView(topLayoutGuide: UILayoutSupport) | |
func displayMessage(message: String, animated: Bool) | |
func hideMessageAnimated(animated: Bool) | |
} | |
extension MessageDisplayable where Self: UIViewController { |