This file contains hidden or 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
@UIApplicationMain | |
class AppDelegate: UIApplicationDelegate { | |
var window: UIWindow? | |
private lazy var backgroundWindow: UIWindow = { | |
let screen = UIScreen.main | |
let window = UIWindow(frame: screen.bounds) | |
window.screen = screen | |
window.rootViewController = BlockViewController() |
This file contains hidden or 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 | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
// MARK: - Handling Application Background State | |
func applicationDidEnterBackground(_ application: UIApplication) { |
This file contains hidden or 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 | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
// MARK: - Handling Application Background State | |
func applicationDidEnterBackground(_ application: UIApplication) { |
This file contains hidden or 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 | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
// MARK: - Handling Application Background State | |
func applicationDidEnterBackground(_ application: UIApplication) { |
This file contains hidden or 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 | |
/// Objects conforming with `ScrollingAdditionalViewController` need to share its preferred height in stack | |
public protocol ScrollingAdditionalViewController where Self: UIViewController { | |
var preferredHeightInStack: CGFloat { get } | |
} | |
/// `NestedScrollViewController` represents the nested `UIScrollView` in `ScrollingController` | |
public protocol NestedScrollViewController where Self: UIViewController { | |
var view: UIView! { get } |