###2020 여름 몰입캠프 4주차 자율과제 : SwiftUI iOS application development
Booklip is an application which provides a convenient interface of keeping your favorite verses in a book and decorate them to create a new pretty image.
Install Booklip
Capture your favorite book page
Use ModalPresenter
and ModalLink
the same way you would use NavigationView
and NavigationLink
:
struct ContentView: View {
var body: some View {
ModalPresenter {
ModalLink(destination: Text("Modal View")) {
Text("Main view")
}
}
}
}
To add a "close" button to a modal view we can use a dismiss
closure provided by the ModalLink
:
struct ContentView: View {
var body: some View {
ModalPresenter {
ModalLink(destination: { dismiss in
Button(action: dismiss) {
Text("Dismiss")
}
}) {
Text("Main view")
}
}
}
}