Skip to content

V8tr/PopupSwiftUI

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Article related to this project


PopupSwiftUI

The project demonstrates how to implement a custom popup in SwiftUI.

Usage:

struct Popup_Previews: PreviewProvider {
    static var previews: some View {
        Color.clear
            .modifier(Popup(isPresented: true, // <--- Add the popup view modifier
                            content: { Color.yellow.frame(width: 100, height: 100) }))
            .previewDevice("iPod touch")
    }
}

Result:

Loading Indicator Snackbar Message
How to show a popup in SwiftUI How to show a popup in SwiftUI