Skip to content

Clean up legacy Swift syntax for current compilers - #21

Merged
lm2343635 merged 4 commits into
masterfrom
modernize/swift6-cleanup
Sep 10, 2026
Merged

lm2343635 merged 4 commits into
masterfrom
modernize/swift6-cleanup

Conversation

@lm2343635

Copy link
Copy Markdown
Member

Summary

This is a deliberately small source-only cleanup to reduce legacy Swift patterns while preserving public behavior.

Changes

  • replace class-only protocol constraints from : class to : AnyObject
  • implement unwrappedValue with compactMap rather than filter + force unwrap
  • make UIViewController lifecycle selectors explicit

Why

Keeping this separate from the package and CI modernization makes the compatibility work easier to review and bisect.

Compatibility

No public API shape is intentionally changed. The target remains in Swift 5 language mode and is compiled by the supported Swift 6 toolchains.

Related: #17

@lm2343635
lm2343635 merged commit 2d23ddb into master Sep 10, 2026
1 check passed
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