Skip to content

Commit ccac2ee

Browse files
committed
Apply a workaround for modal on iOS17 to appear without expansion transition
1 parent 0f523d5 commit ccac2ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

WooCommerce/Classes/POS/Presentation/PointOfSaleInformationModal.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ struct PointOfSaleInformationModal<Content: View>: View {
4040
content
4141
}
4242
.measureHeight { height in
43-
contentHeight = height
43+
// Workaround for ScrollView not updating its height immediately on iOS 17
44+
withAnimation(.easeIn(duration: 0)) {
45+
contentHeight = height
46+
}
4447
}
4548
}
4649
.frame(maxHeight: contentHeight)

0 commit comments

Comments
 (0)