174 Commits

Author SHA1 Message Date
github-actions[bot] 767e79a059 Bump version to 2.3.0 2.3.0 2026-03-10 10:09:15 +00:00
Antoine van der Lee 6b43b6cc01 Merge pull request #41 from AvdLee/optimize/reduce-context-usage
Reduce context usage: trim verbose examples and eliminate cross-file redundancy
2026-03-10 11:08:40 +01:00
Antoine van der Lee 5c2289ffbc Address Copilot review: fix foregroundStyle signature and coordinateSpace example
- Add argument label to foregroundStyle(_:) with usage example
- Use concrete string in coordinateSpace(.named("scroll")) example
- Update Quick Lookup Table to match
2026-03-10 11:04:53 +01:00
Antoine van der Lee 6efb473348 Restore over-reduced content from PR review analysis
- Restore compact ImageProcessor downsampling actor with scale-aware
  sizing and kCGImageSourceShouldCache: false (image-optimization.md)
- Add alert builder code example for the structural API change (latest-apis.md)
- Add onGeometryChange two-closure inline example (latest-apis.md)
- Add composite scrollable + range-selection chart example (charts-accessibility.md)
- Restore FileDocument init/fileWrapper bodies (macos-scenes.md)
- Add isInserted: binding snippet for MenuBarExtra (macos-scenes.md)
- Add proxy.plotAreaFrame iOS 16 fallback comment (charts.md)
- Add init() context to @StateObject anti-pattern (state-management.md)
2026-03-10 11:02:48 +01:00
Antoine van der Lee e3f9ec4b2d Phase 2 context reduction: add TOCs and trim verbose examples
Add Table of Contents to 14 reference files (>100 lines) per
skill-creator progressive disclosure guidelines.

Trim verbose content across 6 files:
- charts.md: 707→602 (-105) — strip Chart wrappers from mark
  examples, collapse enum lists inline, remove obvious descriptions,
  shorten Selection/ChartProxy/Composing sections
- macos-scenes.md: 415→314 (-101) — shorten Settings/MenuBarExtra/
  DocumentGroup examples
- macos-window-styling.md: 408→303 (-105) — merge Commands examples,
  shorten NavigationSplitView, combine window sizing blocks
- latest-apis.md: 547→452 (-95) — replace duplicate @Observable block
  with cross-ref, collapse onChange/presentation/layout to bullets
- macos-views.md: 422→357 (-65) — merge split view examples, trim
  file operations and NSViewRepresentable boilerplate
- state-management.md: 452→415 (-37) — shorten @FocusState, @Binding,
  @StateObject examples

Total references: 6,837→6,421 lines (-416, ~6% further reduction).
Combined with prior PR #41 reductions: ~7,998→6,421 (~20% total).
2026-03-10 10:17:04 +01:00
Antoine van der Lee 9c94fb5b2b Merge pull request #40 from AvdLee/enhance-charts-reference
Enhance Swift Charts reference with styling, accessibility, and WWDC sessions
2026-03-10 10:08:08 +01:00
Antoine van der Lee 4eae6f712a Merge enhance-charts-reference into optimize/reduce-context-usage
Resolve conflicts by keeping the context-reduced versions of
charts.md, charts-accessibility.md, and view-structure.md.
2026-03-10 09:42:36 +01:00
github-actions[bot] dfe7c147ce chore: sync README references [skip ci] 2026-03-10 08:34:04 +00:00
Antoine van der Lee ca58729f18 Address PR review feedback: split charts.md and add @ViewBuilder note
- Split charts.md into two files per progressive disclosure:
  charts.md for core 2D Charts patterns, and
  charts-accessibility.md for accessibility, complete examples,
  fallback strategies, WWDC sessions, and summary checklist
- Update SKILL.md workflow tree, review checklist, and references list
  to reference both charts files
- Update README skill structure tree
- Add @ViewBuilder state-independence note to view-structure.md

Addresses Omar's review feedback (file too big) and remaining
Copilot review comments.
2026-03-10 09:33:42 +01:00
github-actions[bot] ad19171ecd chore: sync README references [skip ci] 2026-03-10 08:15:08 +00:00
Antoine van der Lee 6206cfc3d7 Address PR review feedback: split charts.md and fix remaining issues
- Fix remaining force-unwrap in AXChartDescriptorRepresentable example
  (steps.first!/steps.last! → guard let)
- Split charts.md (798 lines) into two files per progressive disclosure:
  charts.md (~690 lines) for core 2D Charts patterns, and
  charts-accessibility.md (~100 lines) for accessibility, fallback
  strategies, WWDC sessions, and summary checklist
- Update SKILL.md workflow tree, review checklist, and references list
  to reference both charts files
- Update README skill structure tree
- Add @ViewBuilder state-independence note to view-structure.md

Addresses Omar's review feedback on PR #40 (file too big) and
remaining Copilot review comment (force-unwraps).
2026-03-10 09:14:50 +01:00
Omar Elsayed c5bfa85676 Update README.md 2026-03-10 06:27:20 +02:00
Antoine van der Lee eac1c25902 Revert unnecessary Copilot expansions and update copilot-instructions.md
Revert production-code-oriented feedback that added boilerplate back to
skill reference examples (full struct context, guard clauses, #available
branches). These expansions optimize for human copy-paste workflows, not
AI agent pattern recognition.

Kept genuinely valid fixes: syntax corrections (coordinateSpace,
foregroundStyle), naming accuracy (Compact Replacements heading).

Updated .github/copilot-instructions.md with a "This Is a Skill, Not a
Codebase" section to prevent future reviews from applying production-code
standards to reference patterns.
2026-03-09 14:00:04 +01:00
Antoine van der Lee cb31607d7f Address Copilot review feedback
- Restore #available(iOS 17, *) branch in ChartProxy overlay for iOS 16 fallback
- Restore guard for empty steps array in AXChartDescriptor example
- Rename "Simple Renames" to "Compact Replacements" with accurate description
- Fix coordinateSpace syntax to use concrete example
- Fix foregroundStyle(_:) to include parameter
- Add minimal struct context to @StateObject/@ObservedObject and init examples
- Add context comment to performance config snippet
2026-03-09 13:53:10 +01:00
Antoine van der Lee df71a3f939 Reduce context usage: trim verbose examples and eliminate cross-file redundancy
Collapse simple API renames to inline lists, remove duplicate code blocks,
shorten overly expanded examples, and deduplicate Table content across
macos-views.md and list-patterns.md. Update README to better communicate
the skill's breadth-to-context-efficiency ratio.

Total reference content reduced from ~7,998 to ~6,816 lines (~15% reduction)
with zero information loss.
2026-03-09 13:40:40 +01:00
Antoine van der Lee c7bdb21e5f Address Copilot review feedback on charts reference
- Remove force-unwraps in AXChartDescriptorRepresentable example;
  use guard let for safe empty-array handling
- Wrap LinePlot function plot example in #available(iOS 18, *)
- Expand SKILL.md charts checklist to explicitly gate iOS 18+ and
  iOS 26+ APIs alongside iOS 17+
2026-03-09 13:20:59 +01:00
Antoine van der Lee a0b9a62e4a Enhance Swift Charts reference with styling, accessibility, and WWDC sessions
Build on PR #39's foundation by adding missing sections inspired by
jordibruin/Swift-Charts-Examples (used with permission):

- Styling and visual channels (foregroundStyle, chartForegroundStyleScale, symbols, legends)
- Composing multiple marks (line+point overlays, bar+threshold combos)
- Animating chart data with stable identity
- Accessibility (VoiceOver, Audio Graph, AXChartDescriptorRepresentable)
- Expanded Plot types (iOS 18+) with function plot example
- Expanded Chart3D (iOS 26+) with SurfacePlot, camera, and pose APIs
- WWDC Sessions section (7 sessions from 2022-2025)
- Updated best practices and summary checklist

Fix Copilot review feedback: link charts.md from SKILL.md workflow
decision tree, review checklist, and references list.

Add Jordi Bruin credit to README acknowledgments.
2026-03-09 11:49:13 +01:00
Antoine van der Lee feb5d71290 Merge pull request #39 from lanserxt/main
Add comprehensive Swift Charts reference
2026-03-09 11:26:22 +01:00
Omar Elsayed 74bc2a0dde Update weekly installs badge in README
Updated weekly installs badge from 7.1k to 7.2k.
2026-03-08 09:45:53 +02:00
Omar Elsayed 0ba7020e94 Update license badge in README.md 2026-03-08 09:43:29 +02:00
github-actions[bot] 1029aba1ad Bump version to 2.2.0 2.2.0 2026-03-08 07:27:27 +00:00
Antoine van der Lee 0e9e13a9ee Merge pull request #38 from AvdLee/full-width-frame-rule 2026-03-07 21:40:44 +01:00
Antoine van der Lee d0a436dafa Merge pull request #35 from AvdLee/refrencing-macos-apis 2026-03-07 21:39:58 +01:00
Anton Gubarenko 5d881ab756 Charts skill info added 2026-03-07 23:23:33 +03:00
Omar Elsayed fe8fd76790 Update layout-best-practices.md 2026-03-07 16:25:22 +02:00
Omar Elsayed a416747cb5 Add full-width frame rule to layout best practices
Prefer .frame(maxWidth: .infinity, alignment:) over wrapping views
in HStack + Spacer for full-width layout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 16:18:35 +02:00
Omar Elsayed e20a5c2aed Update weekly installs badge from 7.0k to 7.1k 2026-03-07 11:23:19 +02:00
Omar Elsayed c270ea7183 Update swiftui-expert-skill/references/macos-window-styling.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 11:17:57 +02:00
Omar Elsayed 587622aceb Update swiftui-expert-skill/references/latest-apis.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 11:15:57 +02:00
Omar Elsayed 6107089b47 Update swiftui-expert-skill/references/macos-scenes.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 11:14:31 +02:00
Omar Elsayed 13f034c0ce Update swiftui-expert-skill/references/list-patterns.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 11:13:03 +02:00
Omar Elsayed edbe0e9eef Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 11:11:45 +02:00
github-actions[bot] 4e76c465fd Bump version to 2.1.1 2.1.1 2026-03-07 09:10:08 +00:00
Omar Elsayed 8210c5b8aa Merge pull request #36 from AvdLee/feature/compositing-group-clipshape-guidance
Add .compositingGroup() + .clipShape() antialiasing fringe guidance
2026-03-07 11:08:48 +02:00
Omar Elsayed 8b1e89ef9f Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 11:06:26 +02:00
Omar Elsayed e99a89151b Merge pull request #34 from lanserxt/main
onGeometryChange usage suggestion
2026-03-07 11:04:16 +02:00
Omar Elsayed 5320a611d7 Update weekly installs badge from 6.6k to 7.0k 2026-03-07 05:54:56 +02:00
Antoine van der Lee 51e8e2ee11 Merge pull request #37 from AvdLee/fix/stars-badge
Fix stars badge showing as invalid
2026-03-06 22:15:45 +01:00
Antoine van der Lee c993f77ded Fix stars badge showing as invalid
The GitHub stars shields.io endpoint defaults to the "social" style,
which intermittently renders as "invalid". Adding ?style=flat forces
the standard flat style consistent with the other badges. Also updated
the link to point to the stargazers page.
2026-03-06 22:04:41 +01:00
Antoine van der Lee b6022c5e7f Add compositingGroup + clipShape antialiasing fringe guidance
When layered views (overlay/background) are clipped with clipShape,
each layer is antialiased separately, producing visible color fringes
at rounded corners. Adding .compositingGroup() before .clipShape()
composites all layers first so antialiasing is applied only once.

Credit: Axel Le Pennec for surfacing this issue.
2026-03-06 21:59:19 +01:00
Anton Gubarenko f400713574 More precise suggestion 2026-03-06 23:14:35 +03:00
github-actions[bot] 9ddc34ec0b chore: sync README references [skip ci] 2026-03-06 19:36:17 +00:00
Omar Elsayed 981a23ac1f Add macOS references; update Table & clipboard 2026-03-06 21:34:01 +02:00
github-actions[bot] 6e321a61c6 Bump version to 2.1.0 2.1.0 2026-03-06 13:06:20 +00:00
Antoine van der Lee d7b28abb01 Merge pull request #33 from AvdLee/feature/wwdc25-transcript-improvements
Enrich skill with WWDC25 SwiftUI session insights
2026-03-06 14:05:08 +01:00
Antoine van der Lee 25078ed06d Update swiftui-expert-skill/SKILL.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-06 14:04:43 +01:00
Antoine van der Lee 0f1e993469 Address PR #33 review feedback from Copilot and EngOmarElsayed
- Replace "view models" with architecture-neutral language in
  SKILL.md and performance-patterns.md (per AGENTS.md guidelines)
- Fix presentationBackground -> presentationBackground(_:) in
  liquid-glass.md for consistent Swift symbol naming
- Fix concentric corner style example (.continuous -> .concentric)
  in latest-apis.md
- Use full signature scrollEdgeEffectStyle(_:for:) in quick lookup
  table
- Add Scene Bridging code example in latest-apis.md
2026-03-06 13:43:49 +01:00
Anton Gubarenko ac5e5ac3df onGeometryChange usage suggestion 2026-03-06 14:18:49 +03:00
Antoine van der Lee 0507a9e844 Enrich skill with WWDC25 SwiftUI session insights via Sosumi
Analyzed 7 WWDC25 session transcripts fetched via sosumi.ai to
identify new APIs, patterns, and best practices not yet covered
by the skill.

- latest-apis.md: Add ~15 new iOS 26+ APIs (ToolbarSpacer,
  tabViewBottomAccessory, Tab search role, searchToolbarBehavior,
  @Animatable macro, sheet morphing, rich text TextEditor, WebView,
  dragContainer, slider ticks, scene bridging, and more)
- performance-patterns.md: Add @Observable dependency granularity
  pattern, environment update cost, nested lazy scroll optimization,
  and off-main-thread closure guidance
- animation-advanced.md: Add @Animatable/@AnimatableIgnored macro
  section with before/after examples
- liquid-glass.md: Explain glass sampling region (why
  GlassEffectContainer matters), toolbar monochrome icons, sheet
  presentation changes, scroll edge effects
- SKILL.md: Update core guidelines and review checklist with new
  patterns

Sources:
- What's new in SwiftUI (WWDC25, 256)
- Optimize SwiftUI performance with Instruments (WWDC25, 306)
- Explore concurrency in SwiftUI (WWDC25, 266)
- Build a SwiftUI app with the new design (WWDC25, 323)
- Cook up a rich text experience (WWDC25, 280)
- Meet WebKit for SwiftUI (WWDC25, 231)
2026-03-06 11:36:16 +01:00
Omar Elsayed 020c48af27 Add badges to README for license and stats 2026-03-03 11:39:29 +02:00