Skip to content

Commit

Permalink
Add Swift 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kaishin committed Jan 18, 2025
1 parent f8b1b81 commit 4b96b49
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Demo/Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 13.2;
TVOS_DEPLOYMENT_TARGET = 18.0;
};
name = Debug;
};
Expand Down Expand Up @@ -376,7 +376,7 @@
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 13.2;
TVOS_DEPLOYMENT_TARGET = 18.0;
};
name = Release;
};
Expand Down Expand Up @@ -493,7 +493,7 @@
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = "$(SRCROOT)/Demo-iOS/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = Gifu;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_SWIFT_FLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = net.4rays.Gifu.Demo;
Expand All @@ -513,7 +513,7 @@
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = "$(SRCROOT)/Demo-iOS/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = Gifu;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_SWIFT_FLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = net.4rays.Gifu.Demo;
Expand Down
26 changes: 26 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// swift-tools-version:6.0

import PackageDescription

let package = Package(
name: "Gifu",
platforms: [
.iOS(.v16),
.tvOS(.v16),
.visionOS(.v1),
],
products: [
.library(
name: "Gifu",
targets: ["Gifu"]
)
],
dependencies: [],
targets: [
.target(
name: "Gifu",
dependencies: []
)
],
swiftLanguageModes: [.v6]
)
2 changes: 1 addition & 1 deletion Sources/Gifu/Helpers/ImageSourceHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private let defaultFrameDuration: Double = 1 / defaultFrameRate
/// Threshold used in `capDuration` for a FrameDuration
private let capDurationThreshold: Double = 0.02 - Double.ulpOfOne

/// Frameduration used, if a frame-duration is below `capDurationThreshold`
/// Frame duration used, if a frame-duration is below `capDurationThreshold`
private let minFrameDuration: Double = 0.1

/// Returns the duration of a frame at a specific index using an image source (an `CGImageSource` instance).
Expand Down

0 comments on commit 4b96b49

Please sign in to comment.