Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Swift 6 support #204

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Add Swift 6 support #204

wants to merge 9 commits into from

Conversation

kaishin
Copy link
Owner

@kaishin kaishin commented Jan 18, 2025

This PR updates the project to support the latest Xcode versions and iOS/tvOS deployment targets. It also makes some code changes to adopt Swift concurrency and other modern language features.

  • Adopted Swift concurrency in Animator and GIFAnimatable
  • Made FrameStore and FrameCachingStrategy conform to Sendable
  • Updated completion handlers to use @Sendable closures
  • Replaced xcpretty with xcbeautify in Makefile
  • Updated Package.swift for Swift 6 and added ExistentialAny compiler flag
  • Replaced deprecated UTTypeConformsTo with UTType.conforms(to:) in ImageSourceHelpers
  • Updated test case to use @MainActor

- Bump minimum iOS version to 14.0
- Parameterize iOS device in Makefile for flexibility.
- Update GitHub Actions workflow to use Xcode 15.4 and 16.2.
- Add separate build jobs for Xcode 15 and Xcode 16 with respective device configurations for iOS tests.
- Ensure tvOS tests are run in both environments.
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