borisovodov / TreePicker

SwiftUI tree picker for selecting options from hierarchical data.
https://swiftpackageindex.com/borisovodov/TreePicker
MIT License
2 stars 0 forks source link

Create options list view for macOS #5

Open borisovodov opened 2 months ago

borisovodov commented 2 months ago

On iOS, iPadOS and visionOS OutlineGroup inside Form work right from the box.

Form {
    OutlineGroup(self.data, id: self.dataID, children: self.children) { dataElement in
        self.outlineGroupRow(dataElement)
    }
}

Therefore, it's necessary to create an analogue of this view on macOS.

To be

borisovodov commented 1 month ago

There is no way to use default AppKit NSPopUpButton, because item of this button is string only: https://serialcoder.dev/text-tutorials/macos-tutorials/popup-and-pull-down-buttons-in-appkit/