[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E6R01WPYMAWA3M2CEE13WJ":3,"skill-same:01M6E6R01WPYMAWA3M2CEE13WJ":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6E6R01WPYMAWA3M2CEE13WJ","axiom-swiftui-26-ref",null,"Use when implementing iOS 26 SwiftUI features - covers Liquid Glass design system, performance improvements, @Animatable macro, 3D spatial layout, scene bridging, WebView\u002FWebPage, AttributedString rich text editing, drag and drop enhancements, and visionOS integration for iOS 26+","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FCharlesWiltgen\u002FAxiom\u002Faxiom-swiftui-26-ref\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"swiftui","axiom swiftui 26 ref","editing","performance","drag","layout","bridging","drop","Spatial","liquid glass design","use","design system","design","text","system","3D","macro","ios","integration","liquid glass","2026-11-10 10:12:30",false,"---\nname: axiom-swiftui-26-ref\ndescription: Use when implementing iOS 26 SwiftUI features - covers Liquid Glass design system, performance improvements, @Animatable macro, 3D spatial layout, scene bridging, WebView\u002FWebPage, AttributedString rich text editing, drag and drop enhancements, and visionOS integration for iOS 26+\nlicense: MIT\nmetadata:\n  version: \"1.0.0\"\n---\n\n# SwiftUI 26 Features\n\n## Overview\n\nComprehensive guide to new SwiftUI features in iOS 26, iPadOS 26, macOS Tahoe, watchOS 26, and visionOS 26. From the Liquid Glass design system to rich text editing, these enhancements make SwiftUI more powerful across all Apple platforms.\n\n**Core principle** From low level performance improvements all the way up through the buttons in your user interface, there are some major improvements across the system.\n\n## When to Use This Skill\n\n- Adopting the Liquid Glass design system\n- Implementing rich text editing with AttributedString\n- Embedding web content with WebView\n- Optimizing list and scrolling performance\n- Using the @Animatable macro for custom animations\n- Building 3D spatial layouts on visionOS\n- Bridging SwiftUI scenes to UIKit\u002FAppKit apps\n- Implementing drag and drop with multiple items\n- Creating 3D charts with Chart3D\n- Adding widgets to visionOS or CarPlay\n- Adding custom tick marks to sliders (chapter markers, value indicators)\n- Constraining slider selection ranges with `enabledBounds`\n- Customizing slider appearance (thumb visibility, current value labels)\n- Creating sticky safe area bars with blur effects\n- Opening URLs in in-app browser\n- Using system-styled close and confirm buttons\n- Applying glass button styles (iOS 26.1+)\n- Controlling button sizing behavior\n- Implementing compact search toolbars\n- Adjusting line height or baseline spacing for text\n\n## System Requirements\n\n#### iOS 26+, iPadOS 26+, macOS Tahoe+, watchOS 26+, visionOS 26+\n\n---\n\n## Liquid Glass Design System\n\n**For comprehensive coverage**, see `axiom-liquid-glass` (design principles, variants, review pressure) and `axiom-liquid-glass-ref` (app-wide adoption guide). This section covers WWDC 256-specific APIs only.\n\n### Automatic Adoption\n\nRecompile with iOS 26 SDK — navigation containers, tab bars, toolbars, toggles, segmented pickers, and sliders automatically adopt the new design. Bordered buttons default to capsule shape. Sheets get Liquid Glass background (remove any `presentationBackground` customizations).\n\n### Toolbar APIs (iOS 26)\n\n#### ToolbarSpacer\n\n```swift\n.toolbar {\n    ToolbarItem(placement: .bottomBar) { Button(\"Archive\", systemImage: \"archivebox\") { } }\n    ToolbarSpacer(.flexible, placement: .bottomBar)  \u002F\u002F Push items apart\n    ToolbarItem(placement: .bottomBar) { Button(\"Compose\", systemImage: \"square.and.pencil\") { } }\n}\n\u002F\u002F .fixed separates groups visually; .flexible pushes apart (like Spacer in HStack)\n```\n\n#### ToolbarItemGroup (Visual Grouping)\n\nItems in a `ToolbarItemGroup` share a single glass background \"pill\". `ToolbarItemPlacement` controls visual appearance: `confirmationAction` → `glassProminent` styling, `cancellationAction` → standard glass. Use `.sharedBackgroundVisibility(.hidden)` to exclude items (e.g., avatars) from group background.\n\n#### Toolbar Morphing\n\nAttach `.toolbar {}` to individual views inside NavigationStack (not to NavigationStack itself). iOS 26 morphs between per-view toolbars during push\u002Fpop. Use `toolbar(id:)` with matching `ToolbarItem(id:)` across screens for items that should stay stable (no bounce):\n\n```swift\n\u002F\u002F MailboxList\n.toolbar(id: \"main\") {\n    ToolbarItem(id: \"filter\", placement: .bottomBar) { Button(\"Filter\") { } }\n    ToolbarSpacer(.flexible, placement: .bottomBar)\n    ToolbarItem(id: \"compose\", placement: .bottomBar) { Button(\"New Message\") { } }\n}\n\u002F\u002F MessageList — \"filter\" absent (animates out), \"compose\" stays stable\n.toolbar(id: \"main\") {\n    ToolbarSpacer(.flexible, placement: .bottomBar)\n    ToolbarItem(id: \"compose\", placement: .bottomBar) { Button(\"New Message\") { } }\n}\n```\n\n**#1 gotcha**: Toolbar on NavigationStack = nothing to morph between.\n\n#### DefaultToolbarItem\n\nReposition system-provided items (like search) within your toolbar layout:\n\n```swift\nDefaultToolbarItem(kind: .search, placement: .bottomBar)\n\u002F\u002F Replaces system's default placement of matching kind\n```\n\nUse in collapsed `NavigationSplitView` sidebar to specify which column shows search on iPhone. Wrap in `if #available(iOS 26.0, *)` for backward compatibility.\n\n#### User-Customizable Toolbars\n\n`toolbar(id:)` enables user customization (rearrange, show\u002Fhide). Only `.secondaryAction` items support customization on iPadOS. Use `showsByDefault: false` for optional items. Add `ToolbarCommands()` for macOS menu item.\n\n#### Other Toolbar Features\n\n- `.navigationSubtitle(\"3 unread\")` — Secondary line below title\n- `.badge(3)` on toolbar items — Notification counts\n- Monochrome icon rendering — Reduces visual noise; tint for meaning, not decoration\n- Scroll edge blur — Automatic, no code required\n\n### Bottom-Aligned Search\n\n**Foundational search APIs**: See `axiom-swiftui-search-ref`. This section covers iOS 26 refinements only.\n\n```swift\nNavigationSplitView {\n    List { }.searchable(text: $searchText)\n}\n\u002F\u002F Bottom-aligned on iPhone, top trailing on iPad (automatic)\n\u002F\u002F Use placement: .sidebar to restore sidebar-embedded search on iPad\n```\n\n- `searchToolbarBehavior(.minimize)` — Compact search that expands on tap\n- `Tab(role: .search)` — Dedicated search tab; search field replaces tab bar. See swiftui-nav-ref Section 5.7\n\n### Glass Effect for Custom Views\n\n```swift\nButton(\"To Top\", systemImage: \"chevron.up\") { scrollToTop() }\n    .padding()\n    .glassEffect()  \u002F\u002F Add .interactive for custom controls on iOS\n```\n\n- `GlassEffectContainer` — Required when multiple glass elements are nearby (glass can't sample glass)\n- `glassEffectID(_:in:)` — Fluid morphing transitions between glass elements using a namespace\n- Sheet morphing — Use `.matchedTransitionSource` + `.navigationTransition(.zoom(...))` to morph sheets from buttons\n\n### Button & Control Changes\n\n- Capsule shape default for bordered buttons (override with `.buttonBorderShape(.roundedRectangle)`)\n- `.controlSize(.extraLarge)` — New extra-large button size\n- `.controlSize(.small)` on containers — Preserve pre-iOS 26 density\n- `GlassButtonStyle(.clear\u002F.glass\u002F.tint)` — Glass button variants (iOS 26.1+)\n- `.buttonSizing(.fit\u002F.stretch\u002F.flexible)` — Control button layout behavior\n- `Button(role: .close)` \u002F `Button(role: .confirm)` — System-styled close\u002Fconfirm\n- `.clipShape(.rect(cornerRadius: 12, style: .containerConcentric))` — Corner concentricity\n- Menus: icons on leading edge, consistent iOS\u002FmacOS\n\n---\n\n## Slider Enhancements\n\niOS 26 adds custom tick marks, constrained selection ranges, current value labels, and thumb visibility control.\n\n### Slider Ticks\n\nCore types: `SliderTick\u003CV>`, `SliderTickContentForEach`, `SliderTickBuilder`\n\n```swift\n\u002F\u002F Static ticks with labels\nSlider(value: $value, in: 0...10) {\n    Text(\"Rating\")\n} ticks: {\n    SliderTick(0) { Text(\"Min\") }\n    SliderTick(5) { Text(\"Mid\") }\n    SliderTick(10) { Text(\"Max\") }\n}\n\n\u002F\u002F Dynamic ticks from collection\nSliderTickContentForEach(stops, id: \\.self) { value in\n    SliderTick(value) { Text(\"\\(Int(value))°\").font(.caption2) }\n}\n\n\u002F\u002F Step-based ticks (called for each step value)\nSlider(value: $volume, in: 0...10, step: 2, label: { Text(\"Volume\") }, tick: { value in\n    SliderTick(value) { Text(\"\\(Int(value))\") }\n})\n```\n\n**API constraint**: `SliderTickContentForEach` requires `Data.Element` to match `SliderTick\u003CV>` value type. For custom structs, extract numeric values: `chapters.map(\\.time)` then look up labels via `chapters.first(where: { $0.time == time })`.\n\n### Full-Featured Slider\n\n```swift\nSlider(\n    value: $rating, in: 0...100,\n    neutralValue: 50,           \u002F\u002F Starting point \u002F center value\n    enabledBounds: 20...80,     \u002F\u002F Restrict selectable range\n    label: { Text(\"Rating\") },\n    currentValueLabel: { Text(\"\\(Int(rating))\") },\n    minimumValueLabel: { Text(\"0\") },\n    maximumValueLabel: { Text(\"100\") },\n    ticks: { SliderTick(50) { Text(\"Mid\") } },\n    onEditingChanged: { editing in print(editing ? \"Started\" : \"Ended\") }\n)\n```\n\n### sliderThumbVisibility\n\n`.sliderThumbVisibility(.hidden)` — Hide thumb for media progress indicators and minimal UI. Options: `.automatic`, `.visible`, `.hidden`. Always visible on watchOS.\n\n---\n\n## New View Modifiers\n\n### safeAreaBar\n\nSticky bars with integrated progressive blur:\n\n```swift\nList { ForEach(1...20, id: \\.self) { Text(\"\\($0). Item\") } }\n    .safeAreaBar(edge: .bottom) {\n        Text(\"Bottom Action Bar\").padding(.vertical, 15)\n    }\n    .scrollEdgeEffectStyle(.soft, for: .bottom) \u002F\u002F or .hard\n```\n\nWorks like `safeAreaInset` but with blur. Bar remains fixed while content scrolls beneath.\n\n### onOpenURL Enhancement\n\n```swift\n@Environment(\\.openURL) var openURL\n\u002F\u002F openURL(url, prefersInApp: true) — Opens in SFSafariViewController-style in-app browser\n\u002F\u002F Default Link opens in Safari; prefersInApp keeps users in your app\n```\n\n### searchToolbarBehavior\n\nSee `axiom-swiftui-search-ref` for foundational `.searchable` APIs. iOS 26 adds:\n\n```swift\n.searchable(text: $searchText)\n.searchToolbarBehavior(.minimize)  \u002F\u002F Compact button, expands on tap\n```\n\nAlso: `.searchPresentationToolbarBehavior(.avoidHidingContent)` (iOS 17.1+) keeps title visible during search.\n\n**Backward-compatible wrapper** for apps targeting iOS 18+26:\n\n```swift\nextension View {\n    @ViewBuilder func minimizedSearch() -> some View {\n        if #available(iOS 26.0, *) {\n            self.searchToolbarBehavior(.minimize)\n        } else { self }\n    }\n}\n\n\u002F\u002F Usage\n.searchable(text: $searchText)\n.minimizedSearch()\n```\n\n**Availability pattern for toolbar items**:\n\n```swift\n.toolbar {\n    if #available(iOS 26.0, *) {\n        DefaultToolbarItem(kind: .search, placement: .bottomBar)\n        ToolbarSpacer(.flexible, placement: .bottomBar)\n    }\n    ToolbarItem(placement: .bottomBar) {\n        NewNoteButton()\n    }\n}\n.searchable(text: $searchText)\n```\n\n**Button roles, GlassButtonStyle, buttonSizing** — See Liquid Glass Design System section above.\n\n### lineHeight (iOS 26)\n\nSets the baseline-to-baseline distance between text lines. More intuitive than `.lineSpacing()` which measures bottom-of-line to top-of-next-line.\n\n#### Presets\n\n```swift\nText(\"Lorem ipsum...\")\n    .lineHeight(.loose)     \u002F\u002F Increased spacing for open layouts\n    .lineHeight(.tight)     \u002F\u002F Reduced spacing for compact layouts\n    .lineHeight(.normal)    \u002F\u002F Constant height based on point size multiple\n    .lineHeight(.variable)  \u002F\u002F Uses font metrics for height calculation\n```\n\n#### Precise Control\n\n```swift\n\u002F\u002F Scale proportionally to font size\nText(\"Scales with text size\")\n    .lineHeight(.multiple(factor: 2))\n\n\u002F\u002F Relative to point size with fixed increase\nText(\"Point-size relative\")\n    .lineHeight(.leading(increase: 30))\n\n\u002F\u002F Absolute fixed value — does NOT scale with Dynamic Type\nText(\"Fixed height\")\n    .lineHeight(.exact(points: 30))\n```\n\n#### AttributedString Support\n\n```swift\nvar s = AttributedString(\"Paragraph\\nwith multiple\\nlines.\")\ns.lineHeight = .exact(points: 32)\ns.lineHeight = .multiple(factor: 2.5)\ns.lineHeight = .loose\n```\n\n#### Comparison with Existing APIs\n\n| API | Measures | Available |\n|-----|----------|-----------|\n| `.lineHeight()` | Baseline to baseline | iOS 26+ |\n| `.lineSpacing()` | Bottom of line to top of next | iOS 13+ |\n| `.font(.body.leading(.tight))` | Font-level leading preset | iOS 14+ |\n\n**Cross-reference** `axiom-typography-ref` — Full typography system including Dynamic Type, tracking, and internationalization\n\n---\n\n## iPad Enhancements\n\n### Menu Bar\n\n#### Access common actions via swipe-down menu\n\n```swift\n.commands {\n    TextEditingCommands() \u002F\u002F Same API as macOS menu bar\n\n    CommandGroup(after: .newItem) {\n        Button(\"Add Note\") {\n            addNote()\n        }\n        .keyboardShortcut(\"n\", modifiers: [.command, .shift])\n    }\n}\n\u002F\u002F Creates menu bar on iPad when people swipe down\n```\n\n### Resizable Windows\n\n#### Fluid resizing on iPad\n\n```swift\n\u002F\u002F MIGRATION REQUIRED:\n\u002F\u002F Remove deprecated property list key in iPadOS 26:\n\u002F\u002F UIRequiresFullscreen (entire key deprecated, all values)\n\n\u002F\u002F For split view navigation, system automatically shows\u002Fhides columns\n\u002F\u002F based on available space during resize\nNavigationSplitView {\n    Sidebar()\n} detail: {\n    Detail()\n}\n\u002F\u002F Adapts to resizing automatically\n```\n\n**Reference** \"Elevate the design of your iPad app\" (WWDC 2025)\n\n---\n\n## macOS Window Enhancements\n\n### Synchronized Window Resize Animations\n\n```swift\n.windowResizeAnchor(.topLeading) \u002F\u002F Tailor where animation originates\n\n\u002F\u002F SwiftUI now synchronizes animation between content view size changes\n\u002F\u002F and window resizing - great for preserving continuity when switching tabs\n```\n\n---\n\n## Performance Improvements\n\n### List Performance (macOS Focus)\n\n#### Massive gains for large lists\n\n- **6x faster loading** for lists of 100,000+ items on macOS\n- **16x faster updates** for large lists\n- Even bigger gains for larger lists\n- Improvements benefit all platforms (iOS, iPadOS, watchOS)\n\n```swift\nList(trips) { trip in \u002F\u002F 100k+ items\n    TripRow(trip: trip)\n}\n\u002F\u002F Loads 6x faster, updates 16x faster on macOS (iOS 26+)\n```\n\n### Scrolling Performance\n\n#### Reduced dropped frames\n\nSwiftUI has improved scheduling of user interface updates on iOS and macOS. This improves responsiveness and lets SwiftUI do even more work to prepare for upcoming frames. All in all, it reduces the chance of your app dropping a frame while scrolling quickly at high frame rates.\n\n### Nested ScrollViews with Lazy Stacks\n\n#### Photo carousels and multi-axis scrolling\n\n```swift\nScrollView(.horizontal) {\n    LazyHStack {\n        ForEach(photoSets) { photoSet in\n            ScrollView(.vertical) {\n                LazyVStack {\n                    ForEach(photoSet.photos) { photo in\n                        PhotoView(photo: photo)\n                    }\n                }\n            }\n        }\n    }\n}\n\u002F\u002F Nested scrollviews now properly delay loading with lazy stacks\n\u002F\u002F Great for building photo carousels\n```\n\n### SwiftUI Performance Instrument\n\n#### New profiling tool in Xcode\n\nAvailable lanes:\n- **Long view body updates** — Identify expensive body computations\n- **Platform view updates** — Track UIKit\u002FAppKit bridging performance\n- Other performance problem areas\n\n**Reference** \"Optimize SwiftUI performance with instruments\" (WWDC 2025)\n\n**Cross-reference** [SwiftUI Performance](\u002Fskills\u002Fui-design\u002Fswiftui-performance) — Master the SwiftUI Instrument\n\n---\n\n## Swift Concurrency Integration\n\n### Compile-Time Data Race Safety\n\n```swift\n@Observable\nclass TripStore {\n    var trips: [Trip] = []\n\n    func loadTrips() async {\n        trips = await TripService.fetchTrips()\n        \u002F\u002F Swift 6 verifies data race safety at compile time\n    }\n}\n```\n\n**Benefits** Find bugs in concurrent code before they affect your app\n\n#### References\n- \"Embracing Swift concurrency\" (WWDC 2025)\n- \"Explore concurrency in SwiftUI\" (WWDC 2025)\n\n**Cross-reference** [Swift Concurrency](\u002Fskills\u002Fconcurrency\u002Fswift-concurrency) — Swift 6 strict concurrency patterns\n\n---\n\n## @Animatable Macro\n\n### Overview\n\nSimplifies custom animations by automatically synthesizing `animatableData` property.\n\n#### Before (@Animatable macro)\n\n```swift\nstruct HikingRouteShape: Shape {\n    var startPoint: CGPoint\n    var endPoint: CGPoint\n    var elevation: Double\n    var drawingDirection: Bool \u002F\u002F Don't want to animate this\n\n    \u002F\u002F Tedious manual animatableData declaration\n    var animatableData: AnimatablePair\u003CCGPoint.AnimatableData,\n                        AnimatablePair\u003CDouble, CGPoint.AnimatableData>> {\n        get {\n            AnimatablePair(startPoint.animatableData,\n                          AnimatablePair(elevation, endPoint.animatableData))\n        }\n        set {\n            startPoint.animatableData = newValue.first\n            elevation = newValue.second.first\n            endPoint.animatableData = newValue.second.second\n        }\n    }\n}\n```\n\n#### After (@Animatable macro)\n\n```swift\n@Animatable\nstruct HikingRouteShape: Shape {\n    var startPoint: CGPoint\n    var endPoint: CGPoint\n    var elevation: Double\n\n    @AnimatableIgnored\n    var drawingDirection: Bool \u002F\u002F Excluded from animation\n\n    \u002F\u002F animatableData automatically synthesized!\n}\n```\n\n#### Key benefits\n- Delete manual `animatableData` property\n- Use `@AnimatableIgnored` for properties to exclude\n- SwiftUI automatically synthesizes animation data\n\n**Cross-reference** SwiftUI Animation (swiftui-animation-ref skill) — Comprehensive animation guide covering VectorArithmetic, Animatable protocol, @Animatable macro, animation types, Transaction system, and performance optimization\n\n---\n\n## 3D Spatial Layout (visionOS)\n\n### Alignment3D\n\n#### Depth-based layout\n\n```swift\nstruct SunPositionView: View {\n    @State private var timeOfDay: Double = 12.0\n\n    var body: some View {\n        HikingRouteView()\n            .overlay(alignment: sunAlignment) {\n                SunView()\n                    .spatialOverlay(alignment: sunAlignment)\n            }\n    }\n\n    var sunAlignment: Alignment3D {\n        \u002F\u002F Align sun in 3D space based on time of day\n        Alignment3D(\n            horizontal: .center,\n            vertical: .top,\n            depth: .back\n        )\n    }\n}\n```\n\n### Manipulable Modifier\n\n#### Interactive 3D objects\n\n```swift\nModel3D(named: \"WaterBottle\")\n    .manipulable() \u002F\u002F People can pick up and move the object\n```\n\n### Surface Snapping APIs\n\n```swift\n@Environment(\\.surfaceSnappingInfo) var snappingInfo: SurfaceSnappingInfo\n\nvar body: some View {\n    VStackLayout().depthAlignment(.center) {\n        Model3D(named: \"waterBottle\")\n            .manipulable()\n\n        Pedestal()\n            .opacity(snappingInfo.classification == .table ? 1.0 : 0.0)\n    }\n}\n```\n\n#### References\n- \"Meet SwiftUI spatial layout\" (WWDC 2025)\n- \"Set the scene with SwiftUI in visionOS\" (WWDC 2025)\n- \"What's new in visionOS\" (WWDC 2025)\n\n---\n\n## Scene Bridging\n\n### Overview\n\nScene bridging allows your UIKit and AppKit lifecycle apps to interoperate with SwiftUI scenes. Apps can use it to open SwiftUI-only scene types or use SwiftUI-exclusive features right from UIKit or AppKit code.\n\n### Supported Scene Types\n\n#### From UIKit\u002FAppKit apps, you can now use\n\n- `MenuBarExtra` (macOS)\n- `ImmersiveSpace` (visionOS)\n- `RemoteImmersiveSpace` (macOS → Vision Pro)\n- `AssistiveAccess` (iOS 26)\n\n### Scene Modifiers\n\nWorks with scene modifiers like:\n- `.windowStyle()`\n- `.immersiveEnvironmentBehavior()`\n\n### RemoteImmersiveSpace\n\n#### Mac app renders stereo content on Vision Pro\n\n```swift\n\u002F\u002F In your macOS app\n@main\nstruct MyMacApp: App {\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n\n        RemoteImmersiveSpace(id: \"stereoView\") {\n            \u002F\u002F Render stereo content on Apple Vision Pro\n            \u002F\u002F Uses CompositorServices\n        }\n    }\n}\n```\n\n#### Features\n- Mac app renders stereo content on Vision Pro\n- Hover effects and input events supported\n- Uses CompositorServices and Metal\n\n**Reference** \"What's new in Metal rendering for immersive apps\" (WWDC 2025)\n\n### AssistiveAccess Scene\n\n#### Special mode for users with cognitive disabilities\n\n```swift\n@main\nstruct MyApp: App {\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n\n        AssistiveAccessScene {\n            SimplifiedUI() \u002F\u002F UI shown when iPhone is in AssistiveAccess mode\n        }\n    }\n}\n```\n\n**Reference** \"Customize your app for Assistive Access\" (WWDC 2025)\n\n---\n\n## AppKit Integration Enhancements\n\n### SwiftUI Sheets in AppKit\n\n```swift\n\u002F\u002F Show SwiftUI view in AppKit sheet\nlet hostingController = NSHostingController(rootView: SwiftUISettingsView())\npresentAsSheet(hostingController)\n\u002F\u002F Great for incremental SwiftUI adoption\n```\n\n### NSGestureRecognizerRepresentable\n\n```swift\n\u002F\u002F Bridge AppKit gestures to SwiftUI\nstruct AppKitPanGesture: NSGestureRecognizerRepresentable {\n    func makeNSGestureRecognizer(context: Context) -> NSPanGestureRecognizer {\n        NSPanGestureRecognizer()\n    }\n\n    func updateNSGestureRecognizer(_ recognizer: NSPanGestureRecognizer, context: Context) {\n        \u002F\u002F Update configuration\n    }\n}\n```\n\n### NSHostingView in Interface Builder\n\nNSHostingView can now be used directly in Interface Builder for gradual SwiftUI adoption.\n\n---\n\n## RealityKit Integration\n\n### Observable Entities\n\n```swift\n@Observable\nclass RealityEntity {\n    var position: SIMD3\u003CFloat>\n    var rotation: simd_quatf\n}\n\nstruct MyView: View {\n    @State private var entity = RealityEntity()\n\n    var body: some View {\n        \u002F\u002F SwiftUI views automatically observe changes\n        Text(\"Position: \\(entity.position.x)\")\n    }\n}\n```\n\n### PresentationComponent\n\nPresent SwiftUI popovers, alerts, and sheets directly from RealityKit entities.\n\n```swift\n\u002F\u002F Present SwiftUI popovers from RealityKit entities\nlet popover = Entity()\nmapEntity.addChild(popover)\npopover.components[PresentationComponent.self] = PresentationComponent(\n    isPresented: $popoverPresented,\n    configuration: .popover(arrowEdge: .bottom),\n    content: DetailsView()\n)\n```\n\n### Additional Improvements\n\n- `ViewAttachmentComponent` — add SwiftUI views to entities\n- `GestureComponent` — entity touch and gesture responsiveness\n- Enhanced coordinate conversion API\n- Synchronizing animations, binding to components\n- New sizing behaviors for RealityView\n\n**Reference** \"Better Together: SwiftUI & RealityKit\" (WWDC 2025)\n\n---\n\n## WebView & WebPage\n\n### Overview\n\nWebKit now provides full SwiftUI APIs for embedding web content, eliminating the need to drop down to UIKit.\n\n### WebView\n\n#### Display web content\n\n```swift\nimport WebKit\n\nstruct ArticleView: View {\n    let articleURL: URL\n\n    var body: some View {\n        WebView(url: articleURL)\n    }\n}\n```\n\n### WebPage (Observable Model)\n\n#### Rich interaction with web content\n\n```swift\nimport WebKit\n\nstruct InAppBrowser: View {\n    @State private var page = WebPage()\n\n    var body: some View {\n        VStack {\n            Text(page.title ?? \"Loading...\")\n\n            WebView(page)\n                .ignoresSafeArea()\n                .onAppear {\n                    page.load(URLRequest(url: articleURL))\n                }\n\n            HStack {\n                Button(\"Back\") { page.goBack() }\n                    .disabled(!page.canGoBack)\n                Button(\"Forward\") { page.goForward() }\n                    .disabled(!page.canGoForward)\n            }\n        }\n    }\n}\n```\n\n#### WebPage features\n- Programmatic navigation (`goBack()`, `goForward()`)\n- Access page properties (`title`, `url`, `canGoBack`, `canGoForward`)\n- Observable — SwiftUI views update automatically\n\n**tvOS**: WebView and WebPage are **not available on tvOS**. tvOS has no WKWebView at all. For web content parsing on tvOS, use JavaScriptCore. See `axiom-tvos` for alternatives.\n\n### Advanced WebKit Features\n\n- Custom user agents\n- JavaScript execution\n- Custom URL schemes\n- And more\n\n**Reference** \"Meet WebKit for SwiftUI\" (WWDC 2025)\n\n---\n\n## TextEditor with AttributedString\n\n### Overview\n\nSwiftUI's new support for rich text editing is great for experiences like commenting on photos. TextView now supports AttributedString!\n\n**Note** The WWDC transcript uses \"TextView\" as editorial language. The actual SwiftUI API is `TextEditor` which now supports `AttributedString` binding for rich text editing.\n\n#### Plain Text vs Rich Text\n\n- **For plain text**: Prefer `TextField(\"Label\", text: $text, axis: .vertical)` over `TextEditor` — supports placeholder text, consistent styling, and automatic vertical expansion (iOS 16+)\n- **For rich text**: Use `TextEditor` with `AttributedString` binding (iOS 26+) — `TextField` does not support `AttributedString`\n\n### Rich Text Editing\n\n```swift\nstruct CommentView: View {\n    @State private var comment = AttributedString(\"Enter your comment\")\n\n    var body: some View {\n        TextEditor(text: $comment)\n            \u002F\u002F Built-in text formatting controls included\n            \u002F\u002F Users can apply bold, italic, underline, etc.\n    }\n}\n```\n\n#### Features\n- Built-in text formatting controls (bold, italic, underline, colors, etc.)\n- Binding to `AttributedString` preserves formatting\n- Automatic toolbar with formatting options\n\n### Advanced AttributedString Features\n\n#### Customization options\n- Paragraph styles\n- Attribute transformations\n- Constrain which attributes users can apply\n\n**Reference** \"Cook up a rich text experience in SwiftUI with AttributedString\" (WWDC 2025)\n\n**Cross-reference** App Intents Integration (app-intents-ref skill) — AttributedString for Apple Intelligence Use Model action\n\n---\n\n## Drag and Drop Enhancements\n\n### Multiple Item Dragging\n\n#### Drag multiple items based on selection\n\n```swift\nstruct PhotoGrid: View {\n    @State private var selectedPhotos: [Photo.ID] = []\n\n    var body: some View {\n        ScrollView {\n            LazyVGrid(columns: gridColumns) {\n                ForEach(model.photos) { photo in\n                    view(photo: photo)\n                        .draggable(containerItemID: photo.id)\n                }\n            }\n        }\n        .dragContainer(for: Photo.self, selection: selectedPhotos) { draggedIDs in\n            photos(ids: draggedIDs)\n        }\n    }\n}\n```\n\n**Key APIs**:\n- `.draggable(containerItemID:containerNamespace:)` marks each item as part of a drag container (namespace defaults to `nil`)\n- `.dragContainer(for:selection:)` provides the typed items lazily when a drop occurs\n\n### DragConfiguration\n\n#### Customize supported operations\n\n```swift\n.dragConfiguration(DragConfiguration(allowMove: false, allowDelete: true))\n```\n\n### Observing Drag Events\n\n```swift\n.onDragSessionUpdated { session in\n    let ids = session.draggedItemIDs(for: Photo.ID.self)\n    if session.phase == .ended(.delete) {\n        trash(ids)\n        deletePhotos(ids)\n    }\n}\n```\n\n### Drag Preview Formations\n\n```swift\n.dragPreviewsFormation(.stack) \u002F\u002F Items stack nicely on top of one another\n\n\u002F\u002F Other formations:\n\u002F\u002F - .default\n\u002F\u002F - .grid\n\u002F\u002F - .stack\n```\n\nCombine all modifiers (`.dragContainer`, `.dragConfiguration`, `.dragPreviewsFormation`, `.onDragSessionUpdated`) on the same scroll view for a complete multi-item drag experience.\n\n---\n\n## 3D Charts\n\n### Overview\n\nSwift Charts supports three-dimensional plotting with `Chart3D`. Key components: `Chart3D` (container), `SurfacePlot` (continuous surfaces), `Chart3DPose` (camera control), `Chart3DSurfaceStyle` (surface appearance).\n\n### Chart3D Container\n\n```swift\nimport Charts\n\nChart3D {\n    SurfacePlot(x: \"x\", y: \"y\", z: \"z\") { x, y in\n        sin(x) * cos(y)\n    }\n    .foregroundStyle(Gradient(colors: [.orange, .pink]))\n}\n.chartXScale(domain: -3...3)\n.chartYScale(domain: -3...3)\n.chartZScale(domain: -3...3)\n```\n\n`Chart3D` also accepts data collections:\n\n```swift\nChart3D(dataPoints) { point in\n    \u002F\u002F 3D mark for each data point\n}\n```\n\n### SurfacePlot\n\nRenders continuous surfaces from a mathematical function mapping (x, y) to z values.\n\n```swift\nSurfacePlot(x: \"X Axis\", y: \"Y Axis\", z: \"Z Axis\") { x, y in\n    sin(sqrt(x * x + y * y))\n}\n```\n\n#### Surface Styling\n\n```swift\nSurfacePlot(x: \"X\", y: \"Y\", z: \"Z\") { x, y in sin(x) * cos(y) }\n    .foregroundStyle(.blue)                        \u002F\u002F Solid color\n    .roughness(0.3)                                \u002F\u002F 0 = smooth, 1 = rough\n\n\u002F\u002F Height-based coloring (color maps to z-value)\n    .foregroundStyle(Chart3DSurfaceStyle.heightBased(yRange: -1.0...1.0))\n\n\u002F\u002F Custom gradient mapped to height\n    .foregroundStyle(Chart3DSurfaceStyle.heightBased(\n        Gradient(colors: [.blue, .green, .yellow, .red]),\n        yRange: -1.0...1.0\n    ))\n```\n\nAvailable surface styles: `.heightBased` (color by z-value), `.normalBased` (color by surface normal direction).\n\n#### Multiple Surfaces\n\n```swift\nChart3D {\n    SurfacePlot(x: \"X\", y: \"Y\", z: \"Z\") { x, y in sin(x) * cos(y) }\n    SurfacePlot(x: \"X\", y: \"Y\", z: \"Z\") { x, y in cos(x) * sin(y) + 2 }\n}\n```\n\n### Chart3DPose (Camera Control)\n\nControls the viewing angle. Pass as value for static positioning, or bind for interactive rotation.\n\n```swift\n@State private var chartPose: Chart3DPose = .default\n\nChart3D { \u002F* ... *\u002F }\n    .chart3DPose(chartPose)      \u002F\u002F Static — read-only\n    .chart3DPose($chartPose)     \u002F\u002F Binding — enables drag-to-rotate\n```\n\nPredefined poses: `.default`, `.front`, `.back`, `.top`, `.bottom`, `.left`, `.right`\n\nCustom pose with specific angles:\n\n```swift\nChart3DPose(azimuth: .degrees(45), inclination: .degrees(30))\n```\n\nAnimate between poses:\n\n```swift\nButton(\"Top View\") { withAnimation { chartPose = .top } }\n```\n\n### Chart3DCameraProjection\n\nControls how 3D depth is projected to 2D.\n\n```swift\nChart3D { \u002F* ... *\u002F }\n    .chart3DCameraProjection(.perspective)    \u002F\u002F Objects shrink with distance\n    .chart3DCameraProjection(.orthographic)   \u002F\u002F Objects maintain size regardless of depth\n    .chart3DCameraProjection(.automatic)      \u002F\u002F System decides\n```\n\n### Z-Axis Modifiers\n\nAll existing chart axis modifiers have z-axis equivalents:\n- `.chartZScale(domain:)` — Set z-axis range\n- `.chartZAxis()` — Configure z-axis labels and grid lines\n\n**Reference** \"Bring Swift Charts to the third dimension\" (WWDC 2025)\n\n---\n\n## Widgets & Controls\n\n### Controls on watchOS and macOS\n\n#### watchOS 26\n\n```swift\nstruct FavoriteLocationControl: ControlWidget {\n    var body: some ControlWidgetConfiguration {\n        StaticControlConfiguration(kind: \"FavoriteLocation\") {\n            ControlWidgetButton(action: MarkFavoriteIntent()) {\n                Label(\"Mark Favorite\", systemImage: \"star\")\n            }\n        }\n    }\n}\n\u002F\u002F Access from watch face or Shortcuts\n```\n\n#### macOS\n\nControls now appear in Control Center on Mac.\n\n### Widgets on visionOS\n\n#### Level of detail customization\n\n```swift\nstruct CountdownWidget: Widget {\n    var body: some WidgetConfiguration {\n        StaticConfiguration(kind: \"Countdown\") { entry in\n            CountdownView(entry: entry)\n        }\n    }\n}\n\nstruct PhotoCountdownView: View {\n    @Environment(\\.levelOfDetail) var levelOfDetail: LevelOfDetail\n\n    var body: some View {\n        switch levelOfDetail {\n        case .default:\n            RecentPhotosView() \u002F\u002F Full detail when close\n        case .simplified:\n            CountdownView()   \u002F\u002F Simplified when further away\n        default:\n            CountdownView()\n        }\n    }\n}\n```\n\n### Widgets on CarPlay\n\n#### Live Activities on CarPlay\n\nLive Activities now appear on CarPlay displays for glanceable information while driving.\n\n### Additional Widget Features\n\n- Push-based updating API\n- New relevance APIs for watchOS\n\n**Reference** \"What's new in widgets\" (WWDC 2025)\n\n---\n\n## Migration Checklist\n\n### Deprecated APIs\n\n#### ❌ Remove in iPadOS 26\n```xml\n\u003Ckey>UIRequiresFullscreen\u003C\u002Fkey>\n\u003C!-- Entire property list key is deprecated (all values) -->\n```\n\nApps must support resizable windows on iPad.\n\n### Automatic Adoptions (Recompile Only)\n\n✅ Liquid Glass design for navigation, tab bars, toolbars\n✅ Bottom-aligned search on iPhone\n✅ List performance improvements (6x loading, 16x updating)\n✅ Scrolling performance improvements\n✅ System controls (toggles, pickers, sliders) new appearance\n✅ Bordered buttons default to capsule shape\n✅ Updated control heights (slightly taller on macOS)\n✅ Monochrome icon rendering in toolbars\n✅ Menus: icons on leading edge, consistent across iOS and macOS\n✅ Sheets morph out of dialogs automatically\n✅ Scroll edge blur\u002Ffade under system toolbars\n\n### Audit Items (Remove Old Customizations)\n\n⚠️ Remove `presentationBackground` from sheets (let Liquid Glass material shine)\n⚠️ Remove extra backgrounds\u002Fdarkening effects behind toolbar areas\n⚠️ Remove hard-coded control heights (use automatic sizing)\n⚠️ Update section headers to title-style capitalization (no longer auto-uppercased)\n\n### Manual Adoptions (Code Changes)\n\n? Toolbar spacers (`.fixed`)\n? Tinted prominent buttons in toolbars\n? Glass effect for custom views (`.glassEffect()`)\n? `glassEffectID` for morphing transitions between glass elements\n? `GlassEffectContainer` for multiple nearby glass elements\n? `sharedBackgroundVisibility(.hidden)` to remove toolbar item from group background\n? Sheet morphing from buttons (`navigationZoomTransition`)\n? Search tab role (`Tab(role: .search)`)\n? Compact search toolbar (`.searchToolbarBehavior(.minimize)`)\n? Extra large buttons (`.controlSize(.extraLarge)`)\n? Concentric rectangle shape (`.containerConcentric`)\n? iPad menu bar (`.commands`)\n? Window resize anchor (`.windowResizeAnchor()`)\n? @Animatable macro for custom shapes\u002Fmodifiers\n? WebView for web content\n? TextEditor with AttributedString binding\n? Enhanced drag and drop with `.dragContainer`\n? Slider ticks (`SliderTick`, `SliderTickContentForEach`)\n? Slider thumb visibility (`.sliderThumbVisibility()`)\n? Safe area bars with blur (`.safeAreaBar()` + `.scrollEdgeEffectStyle()`)\n? In-app URL opening (`openURL(url, prefersInApp: true)`)\n? Close and confirm button roles (`Button(role: .close)`)\n? Glass button styles (`GlassButtonStyle` — iOS 26.1+)\n? Button sizing control (`.buttonSizing()`)\n? Toolbar morphing transitions (per-view `.toolbar {}` inside NavigationStack)\n? DefaultToolbarItem for system components in toolbars\n? Stable toolbar items (`toolbar(id:)` with matched IDs across screens)\n? User-customizable toolbars (`toolbar(id:)` with `CustomizableToolbarContent`)\n? Line height control (`.lineHeight()` — baseline-to-baseline distance)\n? Tab bar minimization (`.tabBarMinimizeBehavior(.onScrollDown)`)\n? Tab view bottom accessory (`.tabViewBottomAccessory(isEnabled:content:)` — iOS 26.1+)\n\n---\n\n## Best Practices\n\n- **Performance**: Profile with new SwiftUI Instrument; use lazy stacks in nested ScrollViews; trust automatic list performance improvements\n- **Liquid Glass**: Recompile and test first; use toolbar spacers; attach `.toolbar {}` to individual views (not NavigationStack); remove `presentationBackground` from sheets; use `GlassEffectContainer` for nearby glass elements\n- **Layout**: Use `.safeAreaPadding()` for edge-to-edge (not `.padding()`). See `axiom-swiftui-layout-ref` for full guide\n- **Rich Text**: Bind `AttributedString` to `TextEditor`; constrain attributes for your UX\n- **Spatial (visionOS)**: Use `Alignment3D` for depth; `.manipulable()` only where it makes sense\n\n---\n\n## Troubleshooting\n\n| Symptom | Fix |\n|---------|-----|\n| Old design after updating to iOS 26 SDK | Clean build (Shift-Cmd-K), rebuild targeting iOS 26 SDK, check deployment target |\n| Search remains at top on iPhone | Place `.searchable` on `NavigationSplitView`, not on `List` directly |\n| @Animatable \"does not conform\" | All properties must be `VectorArithmetic` or marked `@AnimatableIgnored` |\n| Rich text formatting lost in TextEditor | Bind `AttributedString`, not `String` |\n| Drag delete not working | Enable `.dragConfiguration(allowDelete: true)` AND observe `.onDragSessionUpdated` |\n| SliderTickContentForEach won't compile | Iterate over numeric values (`chapters.map(\\.time)`), not custom structs — see Slider section |\n| Toolbar not morphing during navigation | Move `.toolbar {}` from NavigationStack to each view inside it — see Liquid Glass section |\n\n---\n\n## Resources\n\n**WWDC**: 2025-256, 2025-278 (What's new in widgets), 2025-287 (Meet WebKit for SwiftUI), 2025-310 (Optimize SwiftUI performance with instruments), 2025-323 (Build a SwiftUI app with the new design), 2025-325 (Bring Swift Charts to the third dimension), 2025-341 (Cook up a rich text experience in SwiftUI with AttributedString)\n\n**Docs**: \u002Fswiftui, \u002Fswiftui\u002Fdefaulttoolbaritem, \u002Fswiftui\u002Ftoolbarspacer, \u002Fswiftui\u002Fsearchtoolbarbehavior, \u002Fswiftui\u002Fview\u002Ftoolbar(id:content:), \u002Fswiftui\u002Fview\u002Ftabbarminimizebehavior(_:), \u002Fswiftui\u002Fview\u002Ftabviewbottomaccessory(isenabled:content:), \u002Fswiftui\u002Fslider, \u002Fswiftui\u002Fslidertick, \u002Fswiftui\u002Fslidertickcontentforeach, \u002Fwebkit, \u002Ffoundation\u002Fattributedstring, \u002Fcharts, \u002Fcharts\u002Fchart3d, \u002Fcharts\u002Fsurfaceplot, \u002Fcharts\u002Fchart3dpose, \u002Fcharts\u002Fchart3dcameraprojection, \u002Fcharts\u002Fchart3dsurfacestyle, \u002Frealitykit\u002Fpresentationcomponent\n\n**Skills**: axiom-swiftui-performance, axiom-liquid-glass, axiom-swift-concurrency, axiom-app-intents-ref, axiom-swiftui-search-ref\n\n---\n\n**Primary source** WWDC 2025-256 \"What's new in SwiftUI\". Additional content from 2025-323 (Build a SwiftUI app with the new design), 2025-287 (Meet WebKit for SwiftUI), and Apple documentation.\n**Version** iOS 26+, iPadOS 26+, macOS Tahoe+, watchOS 26+, visionOS 26+\n\n","# SwiftUI 26 Features\n\n## Overview\n\nComprehensive guide to new SwiftUI features in iOS 26, iPadOS 26, macOS Tahoe, watchOS 26, and visionOS 26. From the Liquid Glass design system to rich text editing, these enhancements make SwiftUI more powerful across all Apple platforms.\n\n**Core principle** From low level performance improvements all the way up through the buttons in your user interface, there are some major improvements across the system.\n\n## When to Use This Skill\n\n- Adopting the Liquid Glass design system\n- Implementing rich text editing with AttributedString\n- Embedding web content with WebView\n- Optimizing list and scrolling performance\n- Using the @Animatable macro for custom animations\n- Building 3D spatial layouts on visionOS\n- Bridging SwiftUI scenes to UIKit\u002FAppKit apps\n- Implementing drag and drop with multiple items\n- Creating 3D charts with Chart3D\n- Adding widgets to visionOS or CarPlay\n- Adding custom tick marks to sliders (chapter markers, value indicators)\n- Constraining slider selection ranges with `enabledBounds`\n- Customizing slider appearance (thumb visibility, current value labels)\n- Creating sticky safe area bars with blur effects\n- Opening URLs in in-app browser\n- Using system-styled close and confirm buttons\n- Applying glass button styles (iOS 26.1+)\n- Controlling button sizing behavior\n- Implementing compact search toolbars\n- Adjusting line height or baseline spacing for text\n\n## System Requirements\n\n#### iOS 26+, iPadOS 26+, macOS Tahoe+, watchOS 26+, visionOS 26+\n\n---\n\n## Liquid Glass Design System\n\n**For comprehensive coverage**, see `axiom-liquid-glass` (design principles, variants, review pressure) and `axiom-liquid-glass-ref` (app-wide adoption guide). This section covers WWDC 256-specific APIs only.\n\n### Automatic Adoption\n\nRecompile with iOS 26 SDK — navigation containers, tab bars, toolbars, toggles, segmented pickers, and sliders automatically adopt the new design. Bordered buttons default to capsule shape. Sheets get Liquid Glass background (remove any `presentationBackground` customizations).\n\n### Toolbar APIs (iOS 26)\n\n#### ToolbarSpacer\n\n```swift\n.toolbar {\n    ToolbarItem(placement: .bottomBar) { Button(\"Archive\", systemImage: \"archivebox\") { } }\n    ToolbarSpacer(.flexible, placement: .bottomBar)  \u002F\u002F Push items apart\n    ToolbarItem(placement: .bottomBar) { Button(\"Compose\", systemImage: \"square.and.pencil\") { } }\n}\n\u002F\u002F .fixed separates groups visually; .flexible pushes apart (like Spacer in HStack)\n```\n\n#### ToolbarItemGroup (Visual Grouping)\n\nItems in a `ToolbarItemGroup` share a single glass background \"pill\". `ToolbarItemPlacement` controls visual appearance: `confirmationAction` → `glassProminent` styling, `cancellationAction` → standard glass. Use `.sharedBackgroundVisibility(.hidden)` to exclude items (e.g., avatars) from group background.\n\n#### Toolbar Morphing\n\nAttach `.toolbar {}` to individual views inside NavigationStack (not to NavigationStack itself). iOS 26 morphs between per-view toolbars during push\u002Fpop. Use `toolbar(id:)` with matching `ToolbarItem(id:)` across screens for items that should stay stable (no bounce):\n\n```swift\n\u002F\u002F MailboxList\n.toolbar(id: \"main\") {\n    ToolbarItem(id: \"filter\", placement: .bottomBar) { Button(\"Filter\") { } }\n    ToolbarSpacer(.flexible, placement: .bottomBar)\n    ToolbarItem(id: \"compose\", placement: .bottomBar) { Button(\"New Message\") { } }\n}\n\u002F\u002F MessageList — \"filter\" absent (animates out), \"compose\" stays stable\n.toolbar(id: \"main\") {\n    ToolbarSpacer(.flexible, placement: .bottomBar)\n    ToolbarItem(id: \"compose\", placement: .bottomBar) { Button(\"New Message\") { } }\n}\n```\n\n**#1 gotcha**: Toolbar on NavigationStack = nothing to morph between.\n\n#### DefaultToolbarItem\n\nReposition system-provided items (like search) within your toolbar layout:\n\n```swift\nDefaultToolbarItem(kind: .search, placement: .bottomBar)\n\u002F\u002F Replaces system's default placement of matching kind\n```\n\nUse in collapsed `NavigationSplitView` sidebar to specify which column shows search on iPhone. Wrap in `if #available(iOS 26.0, *)` for backward compatibility.\n\n#### User-Customizable Toolbars\n\n`toolbar(id:)` enables user customization (rearrange, show\u002Fhide). Only `.secondaryAction` items support customization on iPadOS. Use `showsByDefault: false` for optional items. Add `ToolbarCommands()` for macOS menu item.\n\n#### Other Toolbar Features\n\n- `.navigationSubtitle(\"3 unread\")` — Secondary line below title\n- `.badge(3)` on toolbar items — Notification counts\n- Monochrome icon rendering — Reduces visual noise; tint for meaning, not decoration\n- Scroll edge blur — Automatic, no code required\n\n### Bottom-Aligned Search\n\n**Foundational search APIs**: See `axiom-swiftui-search-ref`. This section covers iOS 26 refinements only.\n\n```swift\nNavigationSplitView {\n    List { }.searchable(text: $searchText)\n}\n\u002F\u002F Bottom-aligned on iPhone, top trailing on iPad (automatic)\n\u002F\u002F Use placement: .sidebar to restore sidebar-embedded search on iPad\n```\n\n- `searchToolbarBehavior(.minimize)` — Compact search that expands on tap\n- `Tab(role: .search)` — Dedicated search tab; search field replaces tab bar. See swiftui-nav-ref Section 5.7\n\n### Glass Effect for Custom Views\n\n```swift\nButton(\"To Top\", systemImage: \"chevron.up\") { scrollToTop() }\n    .padding()\n    .glassEffect()  \u002F\u002F Add .interactive for custom controls on iOS\n```\n\n- `GlassEffectContainer` — Required when multiple glass elements are nearby (glass can't sample glass)\n- `glassEffectID(_:in:)` — Fluid morphing transitions between glass elements using a namespace\n- Sheet morphing — Use `.matchedTransitionSource` + `.navigationTransition(.zoom(...))` to morph sheets from buttons\n\n### Button & Control Changes\n\n- Capsule shape default for bordered buttons (override with `.buttonBorderShape(.roundedRectangle)`)\n- `.controlSize(.extraLarge)` — New extra-large button size\n- `.controlSize(.small)` on containers — Preserve pre-iOS 26 density\n- `GlassButtonStyle(.clear\u002F.glass\u002F.tint)` — Glass button variants (iOS 26.1+)\n- `.buttonSizing(.fit\u002F.stretch\u002F.flexible)` — Control button layout behavior\n- `Button(role: .close)` \u002F `Button(role: .confirm)` — System-styled close\u002Fconfirm\n- `.clipShape(.rect(cornerRadius: 12, style: .containerConcentric))` — Corner concentricity\n- Menus: icons on leading edge, consistent iOS\u002FmacOS\n\n---\n\n## Slider Enhancements\n\niOS 26 adds custom tick marks, constrained selection ranges, current value labels, and thumb visibility control.\n\n### Slider Ticks\n\nCore types: `SliderTick\u003CV>`, `SliderTickContentForEach`, `SliderTickBuilder`\n\n```swift\n\u002F\u002F Static ticks with labels\nSlider(value: $value, in: 0...10) {\n    Text(\"Rating\")\n} ticks: {\n    SliderTick(0) { Text(\"Min\") }\n    SliderTick(5) { Text(\"Mid\") }\n    SliderTick(10) { Text(\"Max\") }\n}\n\n\u002F\u002F Dynamic ticks from collection\nSliderTickContentForEach(stops, id: \\.self) { value in\n    SliderTick(value) { Text(\"\\(Int(value))°\").font(.caption2) }\n}\n\n\u002F\u002F Step-based ticks (called for each step value)\nSlider(value: $volume, in: 0...10, step: 2, label: { Text(\"Volume\") }, tick: { value in\n    SliderTick(value) { Text(\"\\(Int(value))\") }\n})\n```\n\n**API constraint**: `SliderTickContentForEach` requires `Data.Element` to match `SliderTick\u003CV>` value type. For custom structs, extract numeric values: `chapters.map(\\.time)` then look up labels via `chapters.first(where: { $0.time == time })`.\n\n### Full-Featured Slider\n\n```swift\nSlider(\n    value: $rating, in: 0...100,\n    neutralValue: 50,           \u002F\u002F Starting point \u002F center value\n    enabledBounds: 20...80,     \u002F\u002F Restrict selectable range\n    label: { Text(\"Rating\") },\n    currentValueLabel: { Text(\"\\(Int(rating))\") },\n    minimumValueLabel: { Text(\"0\") },\n    maximumValueLabel: { Text(\"100\") },\n    ticks: { SliderTick(50) { Text(\"Mid\") } },\n    onEditingChanged: { editing in print(editing ? \"Started\" : \"Ended\") }\n)\n```\n\n### sliderThumbVisibility\n\n`.sliderThumbVisibility(.hidden)` — Hide thumb for media progress indicators and minimal UI. Options: `.automatic`, `.visible`, `.hidden`. Always visible on watchOS.\n\n---\n\n## New View Modifiers\n\n### safeAreaBar\n\nSticky bars with integrated progressive blur:\n\n```swift\nList { ForEach(1...20, id: \\.self) { Text(\"\\($0). Item\") } }\n    .safeAreaBar(edge: .bottom) {\n        Text(\"Bottom Action Bar\").padding(.vertical, 15)\n    }\n    .scrollEdgeEffectStyle(.soft, for: .bottom) \u002F\u002F or .hard\n```\n\nWorks like `safeAreaInset` but with blur. Bar remains fixed while content scrolls beneath.\n\n### onOpenURL Enhancement\n\n```swift\n@Environment(\\.openURL) var openURL\n\u002F\u002F openURL(url, prefersInApp: true) — Opens in SFSafariViewController-style in-app browser\n\u002F\u002F Default Link opens in Safari; prefersInApp keeps users in your app\n```\n\n### searchToolbarBehavior\n\nSee `axiom-swiftui-search-ref` for foundational `.searchable` APIs. iOS 26 adds:\n\n```swift\n.searchable(text: $searchText)\n.searchToolbarBehavior(.minimize)  \u002F\u002F Compact button, expands on tap\n```\n\nAlso: `.searchPresentationToolbarBehavior(.avoidHidingContent)` (iOS 17.1+) keeps title visible during search.\n\n**Backward-compatible wrapper** for apps targeting iOS 18+26:\n\n```swift\nextension View {\n    @ViewBuilder func minimizedSearch() -> some View {\n        if #available(iOS 26.0, *) {\n            self.searchToolbarBehavior(.minimize)\n        } else { self }\n    }\n}\n\n\u002F\u002F Usage\n.searchable(text: $searchText)\n.minimizedSearch()\n```\n\n**Availability pattern for toolbar items**:\n\n```swift\n.toolbar {\n    if #available(iOS 26.0, *) {\n        DefaultToolbarItem(kind: .search, placement: .bottomBar)\n        ToolbarSpacer(.flexible, placement: .bottomBar)\n    }\n    ToolbarItem(placement: .bottomBar) {\n        NewNoteButton()\n    }\n}\n.searchable(text: $searchText)\n```\n\n**Button roles, GlassButtonStyle, buttonSizing** — See Liquid Glass Design System section above.\n\n### lineHeight (iOS 26)\n\nSets the baseline-to-baseline distance between text lines. More intuitive than `.lineSpacing()` which measures bottom-of-line to top-of-next-line.\n\n#### Presets\n\n```swift\nText(\"Lorem ipsum...\")\n    .lineHeight(.loose)     \u002F\u002F Increased spacing for open layouts\n    .lineHeight(.tight)     \u002F\u002F Reduced spacing for compact layouts\n    .lineHeight(.normal)    \u002F\u002F Constant height based on point size multiple\n    .lineHeight(.variable)  \u002F\u002F Uses font metrics for height calculation\n```\n\n#### Precise Control\n\n```swift\n\u002F\u002F Scale proportionally to font size\nText(\"Scales with text size\")\n    .lineHeight(.multiple(factor: 2))\n\n\u002F\u002F Relative to point size with fixed increase\nText(\"Point-size relative\")\n    .lineHeight(.leading(increase: 30))\n\n\u002F\u002F Absolute fixed value — does NOT scale with Dynamic Type\nText(\"Fixed height\")\n    .lineHeight(.exact(points: 30))\n```\n\n#### AttributedString Support\n\n```swift\nvar s = AttributedString(\"Paragraph\\nwith multiple\\nlines.\")\ns.lineHeight = .exact(points: 32)\ns.lineHeight = .multiple(factor: 2.5)\ns.lineHeight = .loose\n```\n\n#### Comparison with Existing APIs\n\n| API | Measures | Available |\n|-----|----------|-----------|\n| `.lineHeight()` | Baseline to baseline | iOS 26+ |\n| `.lineSpacing()` | Bottom of line to top of next | iOS 13+ |\n| `.font(.body.leading(.tight))` | Font-level leading preset | iOS 14+ |\n\n**Cross-reference** `axiom-typography-ref` — Full typography system including Dynamic Type, tracking, and internationalization\n\n---\n\n## iPad Enhancements\n\n### Menu Bar\n\n#### Access common actions via swipe-down menu\n\n```swift\n.commands {\n    TextEditingCommands() \u002F\u002F Same API as macOS menu bar\n\n    CommandGroup(after: .newItem) {\n        Button(\"Add Note\") {\n            addNote()\n        }\n        .keyboardShortcut(\"n\", modifiers: [.command, .shift])\n    }\n}\n\u002F\u002F Creates menu bar on iPad when people swipe down\n```\n\n### Resizable Windows\n\n#### Fluid resizing on iPad\n\n```swift\n\u002F\u002F MIGRATION REQUIRED:\n\u002F\u002F Remove deprecated property list key in iPadOS 26:\n\u002F\u002F UIRequiresFullscreen (entire key deprecated, all values)\n\n\u002F\u002F For split view navigation, system automatically shows\u002Fhides columns\n\u002F\u002F based on available space during resize\nNavigationSplitView {\n    Sidebar()\n} detail: {\n    Detail()\n}\n\u002F\u002F Adapts to resizing automatically\n```\n\n**Reference** \"Elevate the design of your iPad app\" (WWDC 2025)\n\n---\n\n## macOS Window Enhancements\n\n### Synchronized Window Resize Animations\n\n```swift\n.windowResizeAnchor(.topLeading) \u002F\u002F Tailor where animation originates\n\n\u002F\u002F SwiftUI now synchronizes animation between content view size changes\n\u002F\u002F and window resizing - great for preserving continuity when switching tabs\n```\n\n---\n\n## Performance Improvements\n\n### List Performance (macOS Focus)\n\n#### Massive gains for large lists\n\n- **6x faster loading** for lists of 100,000+ items on macOS\n- **16x faster updates** for large lists\n- Even bigger gains for larger lists\n- Improvements benefit all platforms (iOS, iPadOS, watchOS)\n\n```swift\nList(trips) { trip in \u002F\u002F 100k+ items\n    TripRow(trip: trip)\n}\n\u002F\u002F Loads 6x faster, updates 16x faster on macOS (iOS 26+)\n```\n\n### Scrolling Performance\n\n#### Reduced dropped frames\n\nSwiftUI has improved scheduling of user interface updates on iOS and macOS. This improves responsiveness and lets SwiftUI do even more work to prepare for upcoming frames. All in all, it reduces the chance of your app dropping a frame while scrolling quickly at high frame rates.\n\n### Nested ScrollViews with Lazy Stacks\n\n#### Photo carousels and multi-axis scrolling\n\n```swift\nScrollView(.horizontal) {\n    LazyHStack {\n        ForEach(photoSets) { photoSet in\n            ScrollView(.vertical) {\n                LazyVStack {\n                    ForEach(photoSet.photos) { photo in\n                        PhotoView(photo: photo)\n                    }\n                }\n            }\n        }\n    }\n}\n\u002F\u002F Nested scrollviews now properly delay loading with lazy stacks\n\u002F\u002F Great for building photo carousels\n```\n\n### SwiftUI Performance Instrument\n\n#### New profiling tool in Xcode\n\nAvailable lanes:\n- **Long view body updates** — Identify expensive body computations\n- **Platform view updates** — Track UIKit\u002FAppKit bridging performance\n- Other performance problem areas\n\n**Reference** \"Optimize SwiftUI performance with instruments\" (WWDC 2025)\n\n**Cross-reference** [SwiftUI Performance](\u002Fskills\u002Fui-design\u002Fswiftui-performance) — Master the SwiftUI Instrument\n\n---\n\n## Swift Concurrency Integration\n\n### Compile-Time Data Race Safety\n\n```swift\n@Observable\nclass TripStore {\n    var trips: [Trip] = []\n\n    func loadTrips() async {\n        trips = await TripService.fetchTrips()\n        \u002F\u002F Swift 6 verifies data race safety at compile time\n    }\n}\n```\n\n**Benefits** Find bugs in concurrent code before they affect your app\n\n#### References\n- \"Embracing Swift concurrency\" (WWDC 2025)\n- \"Explore concurrency in SwiftUI\" (WWDC 2025)\n\n**Cross-reference** [Swift Concurrency](\u002Fskills\u002Fconcurrency\u002Fswift-concurrency) — Swift 6 strict concurrency patterns\n\n---\n\n## @Animatable Macro\n\n### Overview\n\nSimplifies custom animations by automatically synthesizing `animatableData` property.\n\n#### Before (@Animatable macro)\n\n```swift\nstruct HikingRouteShape: Shape {\n    var startPoint: CGPoint\n    var endPoint: CGPoint\n    var elevation: Double\n    var drawingDirection: Bool \u002F\u002F Don't want to animate this\n\n    \u002F\u002F Tedious manual animatableData declaration\n    var animatableData: AnimatablePair\u003CCGPoint.AnimatableData,\n                        AnimatablePair\u003CDouble, CGPoint.AnimatableData>> {\n        get {\n            AnimatablePair(startPoint.animatableData,\n                          AnimatablePair(elevation, endPoint.animatableData))\n        }\n        set {\n            startPoint.animatableData = newValue.first\n            elevation = newValue.second.first\n            endPoint.animatableData = newValue.second.second\n        }\n    }\n}\n```\n\n#### After (@Animatable macro)\n\n```swift\n@Animatable\nstruct HikingRouteShape: Shape {\n    var startPoint: CGPoint\n    var endPoint: CGPoint\n    var elevation: Double\n\n    @AnimatableIgnored\n    var drawingDirection: Bool \u002F\u002F Excluded from animation\n\n    \u002F\u002F animatableData automatically synthesized!\n}\n```\n\n#### Key benefits\n- Delete manual `animatableData` property\n- Use `@AnimatableIgnored` for properties to exclude\n- SwiftUI automatically synthesizes animation data\n\n**Cross-reference** SwiftUI Animation (swiftui-animation-ref skill) — Comprehensive animation guide covering VectorArithmetic, Animatable protocol, @Animatable macro, animation types, Transaction system, and performance optimization\n\n---\n\n## 3D Spatial Layout (visionOS)\n\n### Alignment3D\n\n#### Depth-based layout\n\n```swift\nstruct SunPositionView: View {\n    @State private var timeOfDay: Double = 12.0\n\n    var body: some View {\n        HikingRouteView()\n            .overlay(alignment: sunAlignment) {\n                SunView()\n                    .spatialOverlay(alignment: sunAlignment)\n            }\n    }\n\n    var sunAlignment: Alignment3D {\n        \u002F\u002F Align sun in 3D space based on time of day\n        Alignment3D(\n            horizontal: .center,\n            vertical: .top,\n            depth: .back\n        )\n    }\n}\n```\n\n### Manipulable Modifier\n\n#### Interactive 3D objects\n\n```swift\nModel3D(named: \"WaterBottle\")\n    .manipulable() \u002F\u002F People can pick up and move the object\n```\n\n### Surface Snapping APIs\n\n```swift\n@Environment(\\.surfaceSnappingInfo) var snappingInfo: SurfaceSnappingInfo\n\nvar body: some View {\n    VStackLayout().depthAlignment(.center) {\n        Model3D(named: \"waterBottle\")\n            .manipulable()\n\n        Pedestal()\n            .opacity(snappingInfo.classification == .table ? 1.0 : 0.0)\n    }\n}\n```\n\n#### References\n- \"Meet SwiftUI spatial layout\" (WWDC 2025)\n- \"Set the scene with SwiftUI in visionOS\" (WWDC 2025)\n- \"What's new in visionOS\" (WWDC 2025)\n\n---\n\n## Scene Bridging\n\n### Overview\n\nScene bridging allows your UIKit and AppKit lifecycle apps to interoperate with SwiftUI scenes. Apps can use it to open SwiftUI-only scene types or use SwiftUI-exclusive features right from UIKit or AppKit code.\n\n### Supported Scene Types\n\n#### From UIKit\u002FAppKit apps, you can now use\n\n- `MenuBarExtra` (macOS)\n- `ImmersiveSpace` (visionOS)\n- `RemoteImmersiveSpace` (macOS → Vision Pro)\n- `AssistiveAccess` (iOS 26)\n\n### Scene Modifiers\n\nWorks with scene modifiers like:\n- `.windowStyle()`\n- `.immersiveEnvironmentBehavior()`\n\n### RemoteImmersiveSpace\n\n#### Mac app renders stereo content on Vision Pro\n\n```swift\n\u002F\u002F In your macOS app\n@main\nstruct MyMacApp: App {\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n\n        RemoteImmersiveSpace(id: \"stereoView\") {\n            \u002F\u002F Render stereo content on Apple Vision Pro\n            \u002F\u002F Uses CompositorServices\n        }\n    }\n}\n```\n\n#### Features\n- Mac app renders stereo content on Vision Pro\n- Hover effects and input events supported\n- Uses CompositorServices and Metal\n\n**Reference** \"What's new in Metal rendering for immersive apps\" (WWDC 2025)\n\n### AssistiveAccess Scene\n\n#### Special mode for users with cognitive disabilities\n\n```swift\n@main\nstruct MyApp: App {\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n\n        AssistiveAccessScene {\n            SimplifiedUI() \u002F\u002F UI shown when iPhone is in AssistiveAccess mode\n        }\n    }\n}\n```\n\n**Reference** \"Customize your app for Assistive Access\" (WWDC 2025)\n\n---\n\n## AppKit Integration Enhancements\n\n### SwiftUI Sheets in AppKit\n\n```swift\n\u002F\u002F Show SwiftUI view in AppKit sheet\nlet hostingController = NSHostingController(rootView: SwiftUISettingsView())\npresentAsSheet(hostingController)\n\u002F\u002F Great for incremental SwiftUI adoption\n```\n\n### NSGestureRecognizerRepresentable\n\n```swift\n\u002F\u002F Bridge AppKit gestures to SwiftUI\nstruct AppKitPanGesture: NSGestureRecognizerRepresentable {\n    func makeNSGestureRecognizer(context: Context) -> NSPanGestureRecognizer {\n        NSPanGestureRecognizer()\n    }\n\n    func updateNSGestureRecognizer(_ recognizer: NSPanGestureRecognizer, context: Context) {\n        \u002F\u002F Update configuration\n    }\n}\n```\n\n### NSHostingView in Interface Builder\n\nNSHostingView can now be used directly in Interface Builder for gradual SwiftUI adoption.\n\n---\n\n## RealityKit Integration\n\n### Observable Entities\n\n```swift\n@Observable\nclass RealityEntity {\n    var position: SIMD3\u003CFloat>\n    var rotation: simd_quatf\n}\n\nstruct MyView: View {\n    @State private var entity = RealityEntity()\n\n    var body: some View {\n        \u002F\u002F SwiftUI views automatically observe changes\n        Text(\"Position: \\(entity.position.x)\")\n    }\n}\n```\n\n### PresentationComponent\n\nPresent SwiftUI popovers, alerts, and sheets directly from RealityKit entities.\n\n```swift\n\u002F\u002F Present SwiftUI popovers from RealityKit entities\nlet popover = Entity()\nmapEntity.addChild(popover)\npopover.components[PresentationComponent.self] = PresentationComponent(\n    isPresented: $popoverPresented,\n    configuration: .popover(arrowEdge: .bottom),\n    content: DetailsView()\n)\n```\n\n### Additional Improvements\n\n- `ViewAttachmentComponent` — add SwiftUI views to entities\n- `GestureComponent` — entity touch and gesture responsiveness\n- Enhanced coordinate conversion API\n- Synchronizing animations, binding to components\n- New sizing behaviors for RealityView\n\n**Reference** \"Better Together: SwiftUI & RealityKit\" (WWDC 2025)\n\n---\n\n## WebView & WebPage\n\n### Overview\n\nWebKit now provides full SwiftUI APIs for embedding web content, eliminating the need to drop down to UIKit.\n\n### WebView\n\n#### Display web content\n\n```swift\nimport WebKit\n\nstruct ArticleView: View {\n    let articleURL: URL\n\n    var body: some View {\n        WebView(url: articleURL)\n    }\n}\n```\n\n### WebPage (Observable Model)\n\n#### Rich interaction with web content\n\n```swift\nimport WebKit\n\nstruct InAppBrowser: View {\n    @State private var page = WebPage()\n\n    var body: some View {\n        VStack {\n            Text(page.title ?? \"Loading...\")\n\n            WebView(page)\n                .ignoresSafeArea()\n                .onAppear {\n                    page.load(URLRequest(url: articleURL))\n                }\n\n            HStack {\n                Button(\"Back\") { page.goBack() }\n                    .disabled(!page.canGoBack)\n                Button(\"Forward\") { page.goForward() }\n                    .disabled(!page.canGoForward)\n            }\n        }\n    }\n}\n```\n\n#### WebPage features\n- Programmatic navigation (`goBack()`, `goForward()`)\n- Access page properties (`title`, `url`, `canGoBack`, `canGoForward`)\n- Observable — SwiftUI views update automatically\n\n**tvOS**: WebView and WebPage are **not available on tvOS**. tvOS has no WKWebView at all. For web content parsing on tvOS, use JavaScriptCore. See `axiom-tvos` for alternatives.\n\n### Advanced WebKit Features\n\n- Custom user agents\n- JavaScript execution\n- Custom URL schemes\n- And more\n\n**Reference** \"Meet WebKit for SwiftUI\" (WWDC 2025)\n\n---\n\n## TextEditor with AttributedString\n\n### Overview\n\nSwiftUI's new support for rich text editing is great for experiences like commenting on photos. TextView now supports AttributedString!\n\n**Note** The WWDC transcript uses \"TextView\" as editorial language. The actual SwiftUI API is `TextEditor` which now supports `AttributedString` binding for rich text editing.\n\n#### Plain Text vs Rich Text\n\n- **For plain text**: Prefer `TextField(\"Label\", text: $text, axis: .vertical)` over `TextEditor` — supports placeholder text, consistent styling, and automatic vertical expansion (iOS 16+)\n- **For rich text**: Use `TextEditor` with `AttributedString` binding (iOS 26+) — `TextField` does not support `AttributedString`\n\n### Rich Text Editing\n\n```swift\nstruct CommentView: View {\n    @State private var comment = AttributedString(\"Enter your comment\")\n\n    var body: some View {\n        TextEditor(text: $comment)\n            \u002F\u002F Built-in text formatting controls included\n            \u002F\u002F Users can apply bold, italic, underline, etc.\n    }\n}\n```\n\n#### Features\n- Built-in text formatting controls (bold, italic, underline, colors, etc.)\n- Binding to `AttributedString` preserves formatting\n- Automatic toolbar with formatting options\n\n### Advanced AttributedString Features\n\n#### Customization options\n- Paragraph styles\n- Attribute transformations\n- Constrain which attributes users can apply\n\n**Reference** \"Cook up a rich text experience in SwiftUI with AttributedString\" (WWDC 2025)\n\n**Cross-reference** App Intents Integration (app-intents-ref skill) — AttributedString for Apple Intelligence Use Model action\n\n---\n\n## Drag and Drop Enhancements\n\n### Multiple Item Dragging\n\n#### Drag multiple items based on selection\n\n```swift\nstruct PhotoGrid: View {\n    @State private var selectedPhotos: [Photo.ID] = []\n\n    var body: some View {\n        ScrollView {\n            LazyVGrid(columns: gridColumns) {\n                ForEach(model.photos) { photo in\n                    view(photo: photo)\n                        .draggable(containerItemID: photo.id)\n                }\n            }\n        }\n        .dragContainer(for: Photo.self, selection: selectedPhotos) { draggedIDs in\n            photos(ids: draggedIDs)\n        }\n    }\n}\n```\n\n**Key APIs**:\n- `.draggable(containerItemID:containerNamespace:)` marks each item as part of a drag container (namespace defaults to `nil`)\n- `.dragContainer(for:selection:)` provides the typed items lazily when a drop occurs\n\n### DragConfiguration\n\n#### Customize supported operations\n\n```swift\n.dragConfiguration(DragConfiguration(allowMove: false, allowDelete: true))\n```\n\n### Observing Drag Events\n\n```swift\n.onDragSessionUpdated { session in\n    let ids = session.draggedItemIDs(for: Photo.ID.self)\n    if session.phase == .ended(.delete) {\n        trash(ids)\n        deletePhotos(ids)\n    }\n}\n```\n\n### Drag Preview Formations\n\n```swift\n.dragPreviewsFormation(.stack) \u002F\u002F Items stack nicely on top of one another\n\n\u002F\u002F Other formations:\n\u002F\u002F - .default\n\u002F\u002F - .grid\n\u002F\u002F - .stack\n```\n\nCombine all modifiers (`.dragContainer`, `.dragConfiguration`, `.dragPreviewsFormation`, `.onDragSessionUpdated`) on the same scroll view for a complete multi-item drag experience.\n\n---\n\n## 3D Charts\n\n### Overview\n\nSwift Charts supports three-dimensional plotting with `Chart3D`. Key components: `Chart3D` (container), `SurfacePlot` (continuous surfaces), `Chart3DPose` (camera control), `Chart3DSurfaceStyle` (surface appearance).\n\n### Chart3D Container\n\n```swift\nimport Charts\n\nChart3D {\n    SurfacePlot(x: \"x\", y: \"y\", z: \"z\") { x, y in\n        sin(x) * cos(y)\n    }\n    .foregroundStyle(Gradient(colors: [.orange, .pink]))\n}\n.chartXScale(domain: -3...3)\n.chartYScale(domain: -3...3)\n.chartZScale(domain: -3...3)\n```\n\n`Chart3D` also accepts data collections:\n\n```swift\nChart3D(dataPoints) { point in\n    \u002F\u002F 3D mark for each data point\n}\n```\n\n### SurfacePlot\n\nRenders continuous surfaces from a mathematical function mapping (x, y) to z values.\n\n```swift\nSurfacePlot(x: \"X Axis\", y: \"Y Axis\", z: \"Z Axis\") { x, y in\n    sin(sqrt(x * x + y * y))\n}\n```\n\n#### Surface Styling\n\n```swift\nSurfacePlot(x: \"X\", y: \"Y\", z: \"Z\") { x, y in sin(x) * cos(y) }\n    .foregroundStyle(.blue)                        \u002F\u002F Solid color\n    .roughness(0.3)                                \u002F\u002F 0 = smooth, 1 = rough\n\n\u002F\u002F Height-based coloring (color maps to z-value)\n    .foregroundStyle(Chart3DSurfaceStyle.heightBased(yRange: -1.0...1.0))\n\n\u002F\u002F Custom gradient mapped to height\n    .foregroundStyle(Chart3DSurfaceStyle.heightBased(\n        Gradient(colors: [.blue, .green, .yellow, .red]),\n        yRange: -1.0...1.0\n    ))\n```\n\nAvailable surface styles: `.heightBased` (color by z-value), `.normalBased` (color by surface normal direction).\n\n#### Multiple Surfaces\n\n```swift\nChart3D {\n    SurfacePlot(x: \"X\", y: \"Y\", z: \"Z\") { x, y in sin(x) * cos(y) }\n    SurfacePlot(x: \"X\", y: \"Y\", z: \"Z\") { x, y in cos(x) * sin(y) + 2 }\n}\n```\n\n### Chart3DPose (Camera Control)\n\nControls the viewing angle. Pass as value for static positioning, or bind for interactive rotation.\n\n```swift\n@State private var chartPose: Chart3DPose = .default\n\nChart3D { \u002F* ... *\u002F }\n    .chart3DPose(chartPose)      \u002F\u002F Static — read-only\n    .chart3DPose($chartPose)     \u002F\u002F Binding — enables drag-to-rotate\n```\n\nPredefined poses: `.default`, `.front`, `.back`, `.top`, `.bottom`, `.left`, `.right`\n\nCustom pose with specific angles:\n\n```swift\nChart3DPose(azimuth: .degrees(45), inclination: .degrees(30))\n```\n\nAnimate between poses:\n\n```swift\nButton(\"Top View\") { withAnimation { chartPose = .top } }\n```\n\n### Chart3DCameraProjection\n\nControls how 3D depth is projected to 2D.\n\n```swift\nChart3D { \u002F* ... *\u002F }\n    .chart3DCameraProjection(.perspective)    \u002F\u002F Objects shrink with distance\n    .chart3DCameraProjection(.orthographic)   \u002F\u002F Objects maintain size regardless of depth\n    .chart3DCameraProjection(.automatic)      \u002F\u002F System decides\n```\n\n### Z-Axis Modifiers\n\nAll existing chart axis modifiers have z-axis equivalents:\n- `.chartZScale(domain:)` — Set z-axis range\n- `.chartZAxis()` — Configure z-axis labels and grid lines\n\n**Reference** \"Bring Swift Charts to the third dimension\" (WWDC 2025)\n\n---\n\n## Widgets & Controls\n\n### Controls on watchOS and macOS\n\n#### watchOS 26\n\n```swift\nstruct FavoriteLocationControl: ControlWidget {\n    var body: some ControlWidgetConfiguration {\n        StaticControlConfiguration(kind: \"FavoriteLocation\") {\n            ControlWidgetButton(action: MarkFavoriteIntent()) {\n                Label(\"Mark Favorite\", systemImage: \"star\")\n            }\n        }\n    }\n}\n\u002F\u002F Access from watch face or Shortcuts\n```\n\n#### macOS\n\nControls now appear in Control Center on Mac.\n\n### Widgets on visionOS\n\n#### Level of detail customization\n\n```swift\nstruct CountdownWidget: Widget {\n    var body: some WidgetConfiguration {\n        StaticConfiguration(kind: \"Countdown\") { entry in\n            CountdownView(entry: entry)\n        }\n    }\n}\n\nstruct PhotoCountdownView: View {\n    @Environment(\\.levelOfDetail) var levelOfDetail: LevelOfDetail\n\n    var body: some View {\n        switch levelOfDetail {\n        case .default:\n            RecentPhotosView() \u002F\u002F Full detail when close\n        case .simplified:\n            CountdownView()   \u002F\u002F Simplified when further away\n        default:\n            CountdownView()\n        }\n    }\n}\n```\n\n### Widgets on CarPlay\n\n#### Live Activities on CarPlay\n\nLive Activities now appear on CarPlay displays for glanceable information while driving.\n\n### Additional Widget Features\n\n- Push-based updating API\n- New relevance APIs for watchOS\n\n**Reference** \"What's new in widgets\" (WWDC 2025)\n\n---\n\n## Migration Checklist\n\n### Deprecated APIs\n\n#### ❌ Remove in iPadOS 26\n```xml\n\u003Ckey>UIRequiresFullscreen\u003C\u002Fkey>\n\u003C!-- Entire property list key is deprecated (all values) -->\n```\n\nApps must support resizable windows on iPad.\n\n### Automatic Adoptions (Recompile Only)\n\n✅ Liquid Glass design for navigation, tab bars, toolbars\n✅ Bottom-aligned search on iPhone\n✅ List performance improvements (6x loading, 16x updating)\n✅ Scrolling performance improvements\n✅ System controls (toggles, pickers, sliders) new appearance\n✅ Bordered buttons default to capsule shape\n✅ Updated control heights (slightly taller on macOS)\n✅ Monochrome icon rendering in toolbars\n✅ Menus: icons on leading edge, consistent across iOS and macOS\n✅ Sheets morph out of dialogs automatically\n✅ Scroll edge blur\u002Ffade under system toolbars\n\n### Audit Items (Remove Old Customizations)\n\n⚠️ Remove `presentationBackground` from sheets (let Liquid Glass material shine)\n⚠️ Remove extra backgrounds\u002Fdarkening effects behind toolbar areas\n⚠️ Remove hard-coded control heights (use automatic sizing)\n⚠️ Update section headers to title-style capitalization (no longer auto-uppercased)\n\n### Manual Adoptions (Code Changes)\n\n? Toolbar spacers (`.fixed`)\n? Tinted prominent buttons in toolbars\n? Glass effect for custom views (`.glassEffect()`)\n? `glassEffectID` for morphing transitions between glass elements\n? `GlassEffectContainer` for multiple nearby glass elements\n? `sharedBackgroundVisibility(.hidden)` to remove toolbar item from group background\n? Sheet morphing from buttons (`navigationZoomTransition`)\n? Search tab role (`Tab(role: .search)`)\n? Compact search toolbar (`.searchToolbarBehavior(.minimize)`)\n? Extra large buttons (`.controlSize(.extraLarge)`)\n? Concentric rectangle shape (`.containerConcentric`)\n? iPad menu bar (`.commands`)\n? Window resize anchor (`.windowResizeAnchor()`)\n? @Animatable macro for custom shapes\u002Fmodifiers\n? WebView for web content\n? TextEditor with AttributedString binding\n? Enhanced drag and drop with `.dragContainer`\n? Slider ticks (`SliderTick`, `SliderTickContentForEach`)\n? Slider thumb visibility (`.sliderThumbVisibility()`)\n? Safe area bars with blur (`.safeAreaBar()` + `.scrollEdgeEffectStyle()`)\n? In-app URL opening (`openURL(url, prefersInApp: true)`)\n? Close and confirm button roles (`Button(role: .close)`)\n? Glass button styles (`GlassButtonStyle` — iOS 26.1+)\n? Button sizing control (`.buttonSizing()`)\n? Toolbar morphing transitions (per-view `.toolbar {}` inside NavigationStack)\n? DefaultToolbarItem for system components in toolbars\n? Stable toolbar items (`toolbar(id:)` with matched IDs across screens)\n? User-customizable toolbars (`toolbar(id:)` with `CustomizableToolbarContent`)\n? Line height control (`.lineHeight()` — baseline-to-baseline distance)\n? Tab bar minimization (`.tabBarMinimizeBehavior(.onScrollDown)`)\n? Tab view bottom accessory (`.tabViewBottomAccessory(isEnabled:content:)` — iOS 26.1+)\n\n---\n\n## Best Practices\n\n- **Performance**: Profile with new SwiftUI Instrument; use lazy stacks in nested ScrollViews; trust automatic list performance improvements\n- **Liquid Glass**: Recompile and test first; use toolbar spacers; attach `.toolbar {}` to individual views (not NavigationStack); remove `presentationBackground` from sheets; use `GlassEffectContainer` for nearby glass elements\n- **Layout**: Use `.safeAreaPadding()` for edge-to-edge (not `.padding()`). See `axiom-swiftui-layout-ref` for full guide\n- **Rich Text**: Bind `AttributedString` to `TextEditor`; constrain attributes for your UX\n- **Spatial (visionOS)**: Use `Alignment3D` for depth; `.manipulable()` only where it makes sense\n\n---\n\n## Troubleshooting\n\n| Symptom | Fix |\n|---------|-----|\n| Old design after updating to iOS 26 SDK | Clean build (Shift-Cmd-K), rebuild targeting iOS 26 SDK, check deployment target |\n| Search remains at top on iPhone | Place `.searchable` on `NavigationSplitView`, not on `List` directly |\n| @Animatable \"does not conform\" | All properties must be `VectorArithmetic` or marked `@AnimatableIgnored` |\n| Rich text formatting lost in TextEditor | Bind `AttributedString`, not `String` |\n| Drag delete not working | Enable `.dragConfiguration(allowDelete: true)` AND observe `.onDragSessionUpdated` |\n| SliderTickContentForEach won't compile | Iterate over numeric values (`chapters.map(\\.time)`), not custom structs — see Slider section |\n| Toolbar not morphing during navigation | Move `.toolbar {}` from NavigationStack to each view inside it — see Liquid Glass section |\n\n---\n\n## Resources\n\n**WWDC**: 2025-256, 2025-278 (What's new in widgets), 2025-287 (Meet WebKit for SwiftUI), 2025-310 (Optimize SwiftUI performance with instruments), 2025-323 (Build a SwiftUI app with the new design), 2025-325 (Bring Swift Charts to the third dimension), 2025-341 (Cook up a rich text experience in SwiftUI with AttributedString)\n\n**Docs**: \u002Fswiftui, \u002Fswiftui\u002Fdefaulttoolbaritem, \u002Fswiftui\u002Ftoolbarspacer, \u002Fswiftui\u002Fsearchtoolbarbehavior, \u002Fswiftui\u002Fview\u002Ftoolbar(id:content:), \u002Fswiftui\u002Fview\u002Ftabbarminimizebehavior(_:), \u002Fswiftui\u002Fview\u002Ftabviewbottomaccessory(isenabled:content:), \u002Fswiftui\u002Fslider, \u002Fswiftui\u002Fslidertick, \u002Fswiftui\u002Fslidertickcontentforeach, \u002Fwebkit, \u002Ffoundation\u002Fattributedstring, \u002Fcharts, \u002Fcharts\u002Fchart3d, \u002Fcharts\u002Fsurfaceplot, \u002Fcharts\u002Fchart3dpose, \u002Fcharts\u002Fchart3dcameraprojection, \u002Fcharts\u002Fchart3dsurfacestyle, \u002Frealitykit\u002Fpresentationcomponent\n\n**Skills**: axiom-swiftui-performance, axiom-liquid-glass, axiom-swift-concurrency, axiom-app-intents-ref, axiom-swiftui-search-ref\n\n---\n\n**Primary source** WWDC 2025-256 \"What's new in SwiftUI\". Additional content from 2025-323 (Build a SwiftUI app with the new design), 2025-287 (Meet WebKit for SwiftUI), and Apple documentation.\n**Version** iOS 26+, iPadOS 26+, macOS Tahoe+, watchOS 26+, visionOS 26+\n\n",{"name":5,"license":15,"metadata":44,"description":7},{"version":45},"1.0.0","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FCharlesWiltgen\u002FAxiom\u002Faxiom-swiftui-26-ref",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill axiom-swiftui-26-ref",{"tool":61,"command":62},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill axiom-swiftui-26-ref",{"tool":64,"command":65},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill axiom-swiftui-26-ref","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FCharlesWiltgen\u002FAxiom\u002Faxiom-swiftui-26-ref\u002FSKILL.md",true,[],[70,79,88,97,103,109],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[76,77,78],"model","model hierarchy","model hierarchy skill",{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[85,86,87],"MCP","zoom","zoom mcp",{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[94,95,96,86],"sdk","zoom apps sdk","apps",{"skillNo":98,"name":99,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[99],{"skillNo":104,"name":105,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[105],{"skillNo":110,"name":111,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[111]]