Skip to content

Commit e88c172

Browse files
lissine0tmolitor-stud-tu
authored andcommitted
Present the inline Safari view in full screen mode
1 parent db5c075 commit e88c172

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Monal/Classes/SwiftuiHelpers.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,11 @@ struct ExternalLinkViewModifier: ViewModifier {
579579
return .systemAction
580580
}
581581
})
582-
.sheet(isPresented: $urlToOpen.optionalMappedToBool(), onDismiss: {
582+
.fullScreenCover(isPresented: $urlToOpen.optionalMappedToBool(), onDismiss: {
583583
urlToOpen = nil
584584
}, content: {
585585
SFSafariView(url: urlToOpen!)
586+
.ignoresSafeArea()
586587
})
587588
}
588589
}

0 commit comments

Comments
 (0)