Skip to content

Remove unnecessary iOS version checks#530

Open
bjorkert wants to merge 1 commit intodevfrom
cleanup/remove-old-ios-version-checks
Open

Remove unnecessary iOS version checks#530
bjorkert wants to merge 1 commit intodevfrom
cleanup/remove-old-ios-version-checks

Conversation

@bjorkert
Copy link
Contributor

@bjorkert bjorkert commented Feb 28, 2026

Summary

  • Remove if #available(iOS 16.0, *) guard in GeneralSettingsView.swift — always true since the deployment target is iOS 16.6
  • Remove #if swift(>=5.9) / #else wrapper in EKEventStore+Extensions.swift — Xcode versions supporting iOS 16.6 targets guarantee Swift 5.9+
  • The if #available(iOS 17, *) check for requestFullAccessToEvents is kept since it guards an API above the deployment target

- Remove `if #available(iOS 16.0, *)` guard in GeneralSettingsView since
  the deployment target (16.6) guarantees availability
- Remove `#if swift(>=5.9)` wrapper in EKEventStore+Extensions since
  Xcode versions supporting iOS 16.6 targets include Swift 5.9+
- Keep `if #available(iOS 17, *)` check for requestFullAccessToEvents
  as it guards an API above the deployment target

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant