Skip to content

Enable upcoming Swift features - #25

Merged
fxm90 merged 3 commits into
mainfrom
feature/enable-upcoming-features
Oct 24, 2026
Merged

fxm90 merged 3 commits into
mainfrom
feature/enable-upcoming-features

Conversation

@fxm90

@fxm90 fxm90 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Enable the ExistentialAny, MemberImportVisibility, NonisolatedNonsendingByDefault, InferIsolatedConformances and InternalImportsByDefault upcoming features for the library and test targets.
  • No any annotations needed: the only protocol, UIProgressHandling, is never used as an existential type.
  • Add explicit import CoreGraphics to GradientProgressBar+ViewModel.swift and GradientProgressBarViewModelTests.swift. These were the only MemberImportVisibility errors, since CGFloat.zero / CGRect(x:y:width:height:) were previously only visible transitively via Foundation.
  • Mark imports of modules whose types are exposed in the public API as public import (UIKit, SwiftUI, Foundation), as required by InternalImportsByDefault. All other imports are now internal.
  • NonisolatedNonsendingByDefault and InferIsolatedConformances required no code changes.
  • Switch the example application to Swift 6 language mode and enable ExistentialAny. It already had approachable concurrency and MemberImportVisibility enabled; no code changes needed.

Testing

  • All 31 tests pass locally (iPhone 17 simulator, iOS 26.5).
  • SwiftFormat lint and SwiftLint are clean.

Add the missing explicit `CoreGraphics` imports required by MemberImportVisibility.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fxm90 fxm90 self-assigned this Oct 23, 2026
@codecov-commenter

codecov-commenter commented Oct 23, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.12%. Comparing base (d1f71ef) to head (a612fbd).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #25   +/-   ##
=======================================
  Coverage   96.12%   96.12%           
=======================================
  Files           7        7           
  Lines         387      387           
=======================================
  Hits          372      372           
  Misses         15       15           

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

… and InternalImportsByDefault upcoming features

Mark imports of modules whose types are exposed in the public API as `public import`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fxm90 fxm90 changed the title Enable ExistentialAny and MemberImportVisibility upcoming features Enable upcoming Swift features Oct 24, 2026
…ication

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fxm90
fxm90 marked this pull request as ready for review October 24, 2026 09:18
@fxm90
fxm90 merged commit 7351d5f into main Oct 24, 2026
3 checks passed
@fxm90
fxm90 deleted the feature/enable-upcoming-features branch October 24, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants