Skip to content

Commit

Permalink
πŸ’„ Tweak tablet presentation styles for modals
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed May 24, 2022
1 parent 3638bb4 commit 22fce12
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ extension AppcuesModalTrait {

var modalPresentationStyle: UIModalPresentationStyle {
switch self {
case .full, .dialog:
case .full:
return UIDevice.current.userInterfaceIdiom == .pad ? .pageSheet : .overFullScreen
case .dialog:
return .overFullScreen
case .sheet:
return .formSheet
case .halfSheet:
return .pageSheet
return .formSheet
}
}
}
Expand Down

0 comments on commit 22fce12

Please sign in to comment.