Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ struct ModalPresentationModifier<Modal: View>: ViewModifier {

func body(content: Content) -> some View {
content
.transaction {
$0.disablesAnimations = false
}
.onAppear {
if self.isContentVisible {
self.isPresented = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ struct ModalPresentationWithItemModifier<Modal: View, Item: Identifiable>: ViewM

func body(content: Content) -> some View {
content
.transaction {
$0.disablesAnimations = false
}
.onAppear {
self.presentedItem = self.visibleItem
}
Expand Down