File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ open class IterableInboxViewController: UITableViewController {
111
111
}
112
112
}
113
113
114
+ /// when in popup mode, specify here if you'd like to change the presentation style
115
+ public var popupModalPresentationStyle : UIModalPresentationStyle ? = nil
116
+
114
117
/// Set this property to override default inbox display behavior. You should set either this property
115
118
/// or `viewDelegateClassName`property but not both.
116
119
public var viewDelegate : IterableInboxViewControllerViewDelegate ? {
@@ -255,6 +258,7 @@ open class IterableInboxViewController: UITableViewController {
255
258
256
259
if let viewController = viewModel. createInboxMessageViewController ( for: message, withInboxMode: inboxMode) {
257
260
viewModel. set ( read: true , forMessage: message)
261
+
258
262
if inboxMode == . nav {
259
263
navigationController? . pushViewController ( viewController, animated: true )
260
264
} else {
@@ -376,6 +380,10 @@ open class IterableInboxViewController: UITableViewController {
376
380
viewController. modalPresentationStyle = . overFullScreen
377
381
return
378
382
}
383
+
384
+ if let modalPresentationStyle = popupModalPresentationStyle {
385
+ viewController. modalPresentationStyle = modalPresentationStyle
386
+ }
379
387
}
380
388
}
381
389
You can’t perform that action at this time.
0 commit comments