We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b1b937 + fbd246d commit a07de07Copy full SHA for a07de07
Source/LightboxController.swift
@@ -185,14 +185,6 @@ open class LightboxController: UIViewController {
185
goTo(initialPage, animated: false)
186
}
187
188
- open override func viewDidAppear(_ animated: Bool) {
189
- super.viewDidAppear(animated)
190
- if !presented {
191
- presented = true
192
- configureLayout(view.bounds.size)
193
- }
194
195
-
196
open override func viewDidLayoutSubviews() {
197
super.viewDidLayoutSubviews()
198
@@ -213,6 +205,11 @@ open class LightboxController: UIViewController {
213
205
width: view.bounds.width,
214
206
height: 100
215
207
)
208
+
209
+ if !presented {
210
+ presented = true
211
+ configureLayout(view.bounds.size)
212
+ }
216
217
218
open override var prefersStatusBarHidden: Bool {
0 commit comments