Skip to content

feat(label): add label views and style support - #1123

Merged
Kyle-Ye merged 13 commits into
mainfrom
feature/label
Oct 6, 2026
Merged

Kyle-Ye merged 13 commits into
mainfrom
feature/label

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Close #1023

  • Add Label, LabelStyle, and public built-in label styles.
  • Add context-based style selection, effective style tracking, and button border shape inputs.
  • Add label accessibility and platform-item integration with conditional toolbar bridging.
  • Add a shared label style example and UI snapshot coverage, and clarify test tagging rules.

@github-actions github-actions Bot added area: accessibility Accessibility APIs, settings, semantics, or behavior. area: example Example apps, previews, sample projects, screenshots, or demo assets. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. area: text Text, labels, line style, and text rendering APIs. area: view View APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior. type: feature New API, behavior, platform support, or user-facing capability. labels Oct 6, 2026
@tuist

tuist Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 c94a6db8e

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 45.4s c94a6db8e

@codecov

codecov Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 331 lines in your changes missing coverage. Please review.
✅ Project coverage is 30.80%. Comparing base (521336e) to head (319171f).

Files with missing lines Patch % Lines
...tUI/Accessibility/AccessibilityConfiguration.swift 0.00% 60 Missing ⚠️
Sources/OpenSwiftUI/View/Label/Label.swift 0.00% 56 Missing ⚠️
Sources/OpenSwiftUI/View/Label/LabelStyle.swift 0.00% 44 Missing ⚠️
...penSwiftUI/View/Label/TitleAndIconLabelStyle.swift 0.00% 25 Missing ⚠️
...ces/OpenSwiftUI/View/Label/DefaultLabelStyle.swift 0.00% 20 Missing ⚠️
...OpenSwiftUI/View/Toolbar/ToolbarItemBridging.swift 0.00% 20 Missing ⚠️
...es/OpenSwiftUI/View/Label/IconOnlyLabelStyle.swift 0.00% 17 Missing ⚠️
...es/OpenSwiftUI/View/Label/FallbackLabelStyle.swift 0.00% 13 Missing ⚠️
Sources/OpenSwiftUI/View/List/ListStyle.swift 0.00% 12 Missing ⚠️
...UI/Accessibility/AccessibilityRepresentation.swift 0.00% 9 Missing ⚠️
... and 12 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1123      +/-   ##
==========================================
- Coverage   30.94%   30.80%   -0.15%     
==========================================
  Files         861      876      +15     
  Lines       70546    70857     +311     
==========================================
- Hits        21833    21828       -5     
- Misses      48713    49029     +316     

☔ 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 commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

/uitest all update only-testing=OpenSwiftUIUITests/LabelUITests/builtInStyles()

@Kyle-Ye

Kyle-Ye commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

/uitest all update only-testing=OpenSwiftUIUITests/LabelUITests/builtInStyles()

@Kyle-Ye
Kyle-Ye merged commit f2be0a4 into main Oct 6, 2026
10 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/label branch October 6, 2026 16:12
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: example Example apps, previews, sample projects, screenshots, or demo assets. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. area: text Text, labels, line style, and text rendering APIs. area: view View APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior. type: feature New API, behavior, platform support, or user-facing capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Label support

1 participant