Skip to content

Tunous/PathControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PathControl

SwiftUI wrapper for NSPathControl.

PopUpPathControl(url: $url) { menuItems in
    PathMenuItem.fileChooser(title: "Select project…")
    
    if menuItems.contains(where: { $0.title == "Users" }) {
        Divider()
        PathMenuItem(title: "Viewing contents of Users directory", action: {
            print("Clicked")
        })
    }
    
    PathSubmenu(title: "Submenu") {
        PathMenuItem(title: "Submenu item", action: {})
    }
    
    Divider()
    
    menuItems
}

About

SwiftUI wrapper for NSPathControl

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages