diff --git a/Example/DemoLightbox/DemoLightbox/ViewController.swift b/Example/DemoLightbox/DemoLightbox/ViewController.swift index a9eed19..57c5655 100644 --- a/Example/DemoLightbox/DemoLightbox/ViewController.swift +++ b/Example/DemoLightbox/DemoLightbox/ViewController.swift @@ -13,11 +13,11 @@ class ViewController: UIViewController { button.autoresizingMask = [.flexibleTopMargin, .flexibleLeftMargin, .flexibleRightMargin, .flexibleBottomMargin] return button - }() + }() override func viewDidLoad() { super.viewDidLoad() - + view.autoresizingMask = [.flexibleTopMargin, .flexibleLeftMargin, .flexibleRightMargin, .flexibleBottomMargin] view.backgroundColor = UIColor.white view.addSubview(showButton) diff --git a/Source/Views/HeaderView.swift b/Source/Views/HeaderView.swift index 67ec187..11c940d 100644 --- a/Source/Views/HeaderView.swift +++ b/Source/Views/HeaderView.swift @@ -38,7 +38,7 @@ open class HeaderView: UIView { button.isHidden = !LightboxConfig.CloseButton.enabled return button - }() + }() open fileprivate(set) lazy var deleteButton: UIButton = { [unowned self] in let title = NSAttributedString( @@ -65,7 +65,7 @@ open class HeaderView: UIView { button.isHidden = !LightboxConfig.DeleteButton.enabled return button - }() + }() weak var delegate: HeaderViewDelegate?