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 | |
@available(iOS 9.0, *) | |
public class StackScrollView: UIView { | |
// MARK: - Properties | |
public let scrollView = UIScrollView() | |
public let stackView = UIStackView() | |
lazy var constraintLayoutHeight : NSLayoutConstraint = { |
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 ViewController<T:UIView> : UIViewController{ | |
weak var _view : T! {return self.view as? T} | |
override func loadView() { | |
view = T() | |
} | |
} | |
class View:UIView { |