Repository navigation
Constraints become readable and editable, and the whole view tree can now be browsed on a single screen.
Constraints
- Constraints are listed with stack grouping and role-aware descriptions instead of raw equations.
constantandprioritycan be edited in place; the layout properties that were read-only in 1.0.0 are now writable.
Hierarchy detail page
- Split into three segments — Properties / Layer / Auto Layout; switching rebuilds the current segment's data.
frame/bounds/centerare edited through the same editor as every other value, not a special case.- Numeric fields accept presets: one row of chips per field, filled in on tap, still submitted by Done.
- The Layer segment covers CALayer subclasses through the same JSON description used for view subclasses.
View tree
- New generic
DO.TreeView, plus a full-screen tree page: tap a row to focus and expand/collapse, the trailing button confirms and returns, and the breadcrumb reusesDO.PathBarView. - New setting for how many parent levels the tree shows —
0means unlimited, which is the default; 0–8 selectable.
Fixes
- Console writes back to the original descriptor, so Xcode's console output is preserved.
- Removed a duplicated row that appeared when a JSON entry in a subclass collided with a built-in layer key.
- Fixed a crash opening the property panel on
UITextView.
Under the hood
- Hierarchy grouping is JSON-driven, and the JSON definitions were expanded.
- Comments capped at one or two lines; file headers unified across the repo.
- Docs: a checklist for the comment / file-header rules, and a candidate list for further Hierarchy JSON properties.
Install
CocoaPods:
pod 'DoSwiftKit', '~> 1.1.0'SwiftPM:
.package(url: "https://github.com/darkThanBlack/DoSwiftKit.git", from: "1.1.0")Requires iOS 13.0+ and Swift 5.9+.
中文摘要
约束支持分组展示与角色化描述,可编辑 constant / priority;详情页拆为 属性 / 图层 / Auto Layout 三段,frame / bounds / center 走同一套编辑器;数值输入支持预设 chips。
新增通用 DO.TreeView 与全屏视图树页面(点击聚焦、行尾按钮确认、面包屑复用 DO.PathBarView),新增「树父级层数」设置(默认 0 = 不限)。
修复:控制台回写到原描述符保留 Xcode 输出、JSON 与内置行重名导致的重复行、UITextView 属性面板崩溃。