How to create popup in SwiftUI ?

From iOS 16 onwards you can create a popup with inbuilt Apple’s API. i.e. .presentationDetents(.. Here i have passed values .presentationDetents([.medium, .large]) Means it will show as medium height first then by dragging it it will cover the full height. Setting of custom height of Popup – Percentage height of view – use .fraction(0.8) Set …

How to create popup in SwiftUI ? Read More »