Skip to content

Implement TimeDataFormatting support - #1000

Merged
Kyle-Ye merged 11 commits into
mainfrom
feature/time_date_formatting
Aug 16, 2026
Merged

Kyle-Ye merged 11 commits into
mainfrom
feature/time_date_formatting

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 16, 2026

Copy link
Copy Markdown
Member

Summary

  • add type-erased Codable support for safely serializing time data format styles
  • implement TimeDataFormatting.Resolvable, container representations, update-frequency behavior, configuration, and timeline scheduling
  • add Foundation bridging helpers, whitespace-removing format styles, and current-date resolution support
  • cover resolution, serialization, legacy representations, reduced-luminance formatting, scheduling, and attributed-string redaction with focused tests

Why

This completes the package-level time formatting infrastructure needed for dynamic text updates, archived view compatibility, reduced-luminance display behavior, and schedule generation.

Testing

  • swift test --filter TimeDataFormattingTests — 13 tests passed

@github-actions github-actions Bot added area: tests Test suites, UI tests, fixtures, snapshots, and test support code. area: text Text, labels, line style, and text rendering APIs. type: feature New API, behavior, platform support, or user-facing capability. labels Aug 16, 2026
@Kyle-Ye
Kyle-Ye marked this pull request as ready for review August 16, 2026 17:46
@Kyle-Ye
Kyle-Ye merged commit 0abc55b into main Aug 16, 2026
6 of 8 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/time_date_formatting branch August 16, 2026 18:20
@codecov

codecov Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 62.14405% with 452 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.12%. Comparing base (f161632) to head (d2857db).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...FormatStyle/TimeDataFormatting+Configuration.swift 36.36% 119 Missing ⚠️
...ces/OpenSwiftUICore/Util/FoundationAdditions.swift 45.26% 104 Missing ⚠️
...ore/View/Text/FormatStyle/TimeDataFormatting.swift 72.99% 74 Missing ⚠️
...tStyle/SafelySerializableDiscreteFormatStyle.swift 80.53% 44 Missing ⚠️
...xt/FormatStyle/WhitespaceRemovingFormatStyle.swift 0.00% 31 Missing ⚠️
...atStyle/VariablePrecisionDiscreteFormatStyle.swift 0.00% 29 Missing ⚠️
...matStyle/UpdateFrequencyDependentFormatStyle.swift 83.60% 20 Missing ⚠️
...Text/FormatStyle/TimeDataFormatting+Schedule.swift 89.24% 10 Missing ⚠️
...rces/OpenSwiftUICore/Data/Codable/AnyCodable.swift 64.00% 9 Missing ⚠️
...ext/FormatStyle/CalendarDependentFormatStyle.swift 0.00% 4 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1000      +/-   ##
==========================================
+ Coverage   26.19%   27.12%   +0.92%     
==========================================
  Files         736      745       +9     
  Lines       55749    56885    +1136     
==========================================
+ Hits        14606    15431     +825     
- Misses      41143    41454     +311     

☔ 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.

@tuist

tuist Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
OpenSwiftUI ✅ 0 % 82 0 82 756300e85

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 3m 11s 756300e85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suites, UI tests, fixtures, snapshots, and test support code. area: text Text, labels, line style, and text rendering APIs. type: feature New API, behavior, platform support, or user-facing capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant