0

0201 - SwiftUI 树型控件

 3 months ago
source link: https://atjason.com/daily/2024-02-01.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

0201 - SwiftUI 树型控件

2024-02-01

| 每天写一点

先后尝试了几条路,都不完美。

官方出的 OulineGroup,像个玩具,完全不成熟。比如,不能记录节点展开状态。

自己组合 DisclosureGroup,也有别的问题,比如不同级别之间的拖拽。

想自己封装 NSOutlineView,发现只是 macOS 平台,不支持 iOS 等系统。

最后还是将就着用 DisclosureGroup,自己通过拖拽的方式支持 Move 操作。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK