Skip to content

Commit 4a70c08

Browse files
authored
Merge pull request #254 from hyperoslo/force-modalPresentationStyle
Force modal presentation style
2 parents dbffe4f + 7830a75 commit 4a70c08

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Source/LightboxController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ open class LightboxController: UIViewController {
166166
open override func viewDidLoad() {
167167
super.viewDidLoad()
168168

169+
// 9 July 2020: @3lvis
170+
// Lightbox hasn't been optimized to be used in presentation styles other than fullscreen.
171+
modalPresentationStyle = .fullScreen
172+
169173
statusBarHidden = UIApplication.shared.isStatusBarHidden
170174

171175
view.backgroundColor = UIColor.black

iOSDemo/ViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class ViewController: UIViewController {
4848
]
4949

5050
let controller = LightboxController(images: images)
51-
controller.modalPresentationStyle = .fullScreen
5251
controller.dynamicBackground = true
5352

5453
present(controller, animated: true, completion: nil)

0 commit comments

Comments
 (0)