Skip to content

Releases

1.1.0

Choose a tag to compare

@darkThanBlack darkThanBlack released this 19 Nov 08:36

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.
  • constant and priority can 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 / center are 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 reuses DO.PathBarView.
  • New setting for how many parent levels the tree shows — 0 means 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 属性面板崩溃。

1.0.0

Choose a tag to compare

@darkThanBlack darkThanBlack released this 19 Nov 08:35

First public release: a ground-up, pure Swift rewrite of DoKit. No dependencies, no reporting, iOS 13+.

Visual inspection

  • Colour picker, view inspector, alignment ruler, layout borders and the UI hierarchy folded into one entry.
  • View lookup rewritten — the overlay no longer swallows touches meant for the host app.
  • A large amount of boilerplate removed: the original synthesized every property in Objective-C, here they are rendered from JSON.
  • Edit object properties live, through a redesigned editor and a re-curated set of editable properties.
  • Layout properties are read-only for now — constraints need their own design.

Everyday tools

  • Performance: CPU / memory / FPS, as an overlay and as a report in line / bar / text style.
  • Info: app info, console, network capture, UserDefaults browser, sandbox file browser.

Overall

  • New UI written from scratch on iOS 13 SF Symbols.
  • Dark mode, English and Chinese out of the box.
  • Bring your own plugins via DO.Plugin — they land in a dedicated group at the top of the menu.

Install

CocoaPods:

pod 'DoSwiftKit', '1.0.0'

SwiftPM:

.package(url: "https://github.com/darkThanBlack/DoSwiftKit.git", from: "1.0.0")

Usage

#if DEBUG
DO.Core.shared.setup(appScene: windowScene, appWindow: window)
#endif

Requires iOS 13.0+ and Swift 5.9+.

中文摘要

首个公开版本:基于 Swift 对 DoKit 的彻底重写,零依赖、无上报,支持 iOS 13+。

视觉检查合并为一个入口(取色 / 视图检查 / 量距 / 布局边框 / 视图层级),视图查找重写后浮层不再拦截宿主 App 的触摸;属性渲染由 JSON 驱动,去掉了原版大量 Objective-C 样板;支持运行时修改对象属性,布局属性暂为只读。

另有 CPU / 内存 / FPS(浮窗 + 折线 / 柱状 / 文本报表)、App 信息、控制台、网络抓包、UserDefaults 与沙盒浏览,并支持通过 DO.Plugin 自带插件。