Custom modal presentation for UIKit & SwiftUI
- File -> Swift Packages -> Add Package Dependency...
- Enter package URL : https://github.com/sandsn123/Presentationmanager.git, choose the latest release
// <your swiftui view>
.lspresent(isPresented: $isPresented, presentationManager: .init(direction: .center, presentationSize: PresentationSize())) {
// presented view
}