PanModal/Sample/View Controllers/Basic/BasicViewController.swift

37 lines
769 B
Swift

//
// BasicViewController.swift
// PanModal
//
// Created by Stephen Sowole on 2/26/19.
// Copyright © 2019 PanModal. All rights reserved.
//
import UIKit
class BasicViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = #colorLiteral(red: 0.1019607843, green: 0.1137254902, blue: 0.1294117647, alpha: 1)
}
}
extension BasicViewController: PanModalPresentable {
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
var panScrollable: UIScrollView? {
return nil
}
var longFormHeight: PanModalHeight {
return .maxHeightWithTopInset(200)
}
var anchorModalToLongForm: Bool {
return false
}
}