Skip to content

Latest commit

 

History

History
58 lines (47 loc) · 7.56 KB

DeveloperToolsSupport.md

File metadata and controls

58 lines (47 loc) · 7.56 KB

DeveloperToolsSupport

Symbols: 63.5% of Apple's iOS API (40 of 63, exact) · Rows: 7: 5 ✅ 2 ❌ · iOS: 14.0+

Area: Developer tools · Apple: DeveloperToolsSupport · Issues: area:devtools

How isim implements it

  • Adapted: the preview types; #Preview is expanded by isim's macro plugin and rendered by isim preview. Rows: SwiftUI and Platform.
  • Adapted: the asset catalog resources ImageResource and ColorResource (isim/swift/overlays/DeveloperToolsSupport.swift) name an asset and its bundle; isim build generates Xcode's GeneratedAssetSymbols.swift / .h naming them, and UIKit and SwiftUI load them from isim's asset catalog format.

API

API / feature Status iOS Notes
ImageResource, ColorResource (init(name:bundle:)) ✅ ≤17 an asset's name and bundle; UIImage(resource:) / UIColor(resource:) and SwiftUI's Image(_:) / Color(_:) load them (iOS 17 in Apple's documentation; usable with older deployment targets, as Xcode 15+ generates them). Tested (HelloAssetSymbols: test_asset_symbols)
Generated asset symbols (GeneratedAssetSymbols.swift / .h) ✅ ≤17 isim build writes them for the target's asset catalogs like Xcode: ColorResource / ImageResource members (ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS, default YES; names in lower camel case without a trailing "Color" / "Image": "AccentColor" is .accent, "hero-image" is .hero), with ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS (YES in new projects) UIColor / UIImage / Color / ShapeStyle members for ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS (default SwiftUI and UIKit), and ACColorName… / ACImageName… constants for Objective-C; Swift packages get them over Bundle.module (unverified). Namespaced folders (provides-namespace) are not supported, as in isim's asset catalogs. Tested (HelloAssetSymbols: test_generated_asset_symbols_source, test_asset_symbols, test_asset_symbols_dark)
PreviewTrait (init(_:...) combining traits; the layouts and orientations; .modifier(_:) from SwiftUI) ✅ ≤17 adapted: isim preview applies the layout traits (default, size that fits, fixed) of the combined traits in order, and a SwiftUI PreviewModifier's body around the content. Tested (HelloSwiftUI previews: test_previews)
LibraryContentProvider, LibraryItem (Category), LibraryContentBuilder ✅ ≤17 stub: they compile and type-check; isim has no Xcode library to show the items. Built in HelloSwiftUI (SampleLibrary)
PreviewMacroBodyBuilder ✅ ≤17 adapted: the body builder of the UIKit #Preview macros (one UIView or UIViewController, after any statements); SwiftUI's #Preview takes a @ViewBuilder body. Tested (HelloSwiftUI previews: test_previews)
Types not yet in isim (iOS 18) ❌ 18.0 not implemented, found by the 2026-10 sweep: PreviewBodyBuilder (1 type; with its members under "Not yet in isim")
Types not yet in isim (iOS 26) ❌ 26.0 not implemented, found by the 2026-10 sweep: PreviewArguments (1 type; with its members under "Not yet in isim")

Not yet in isim

23 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.

List