Skip to content

feat(link): update Link styles and appearance support - #1216

Merged
Kyle-Ye merged 9 commits into
mainfrom
feature/link
Oct 25, 2026
Merged

Kyle-Ye merged 9 commits into
mainfrom
feature/link

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Update Link text initializers, sensitive URL handling, accessibility metadata, and archive behavior.
  • Add macOS LinkButtonStyle while preserving explicit button styles, and add LinkShapeStyle.
  • Resolve macOS link colors through appearance catalogs and complete composite appearance providers.
  • Add focused regression tests, shared Link examples, and UI snapshots for button styles, disabled states, and light/dark colors.

Dependency

Closes #1211.

@Kyle-Ye Kyle-Ye added this to the 0.25.0 milestone Oct 25, 2026
@github-actions github-actions Bot added area: accessibility Accessibility APIs, settings, semantics, or behavior. area: graphics Color, shape, gradient, image, symbols, and graphics primitives. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. area: view View APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior. platform: macOS macOS-specific behavior or support. type: feature New API, behavior, platform support, or user-facing capability. labels Oct 25, 2026
@Kyle-Ye

Kyle-Ye commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

/uitest osui-iag update only-testing=OpenSwiftUIUITests/LinkUITests

@tuist

tuist Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 638491f42

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 1m 5s 638491f42

@codecov

codecov Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.95041% with 34 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.29%. Comparing base (875145a) to head (b00f330).

Files with missing lines Patch % Lines
.../OpenSwiftUI/View/Control/Button/ButtonStyle.swift 0.00% 10 Missing ⚠️
.../OpenSwiftUI/Shape/ShapeStyle/LinkShapeStyle.swift 30.76% 9 Missing ⚠️
...tUICore/Graphic/Appearance/CatalogAppearance.swift 93.25% 6 Missing ⚠️
...UI/View/Control/Button/WidgetLinkButtonStyle.swift 0.00% 4 Missing ⚠️
...penSwiftUICore/Graphic/Appearance/Appearance.swift 90.62% 3 Missing ⚠️
...s/OpenSwiftUI/View/ArchivedView/ArchivedView.swift 0.00% 1 Missing ⚠️
...nSwiftUI/View/Control/Button/LinkButtonStyle.swift 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1216      +/-   ##
==========================================
+ Coverage   30.75%   31.29%   +0.53%     
==========================================
  Files         964      968       +4     
  Lines       78159    78373     +214     
==========================================
+ Hits        24041    24526     +485     
+ Misses      54118    53847     -271     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye
Kyle-Ye merged commit 9c53328 into main Oct 25, 2026
9 of 10 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/link branch October 25, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: accessibility Accessibility APIs, settings, semantics, or behavior. area: graphics Color, shape, gradient, image, symbols, and graphics primitives. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. area: view View APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior. platform: macOS macOS-specific behavior or support. type: feature New API, behavior, platform support, or user-facing capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Link implementation

1 participant