Skip to content

Commit

Permalink
Update Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
noppefoxwolf committed Apr 6, 2024
1 parent 41c69f4 commit da8eca7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@

import PackageDescription

var platforms: [SupportedPlatform] {
#if compiler(<5.3)
return [.iOS(.v8)]
#else
// Xcode 12 (which ships with Swift 5.3) drops support for iOS 8
return[.iOS(.v9)]
#endif
}

let package = Package(
name: "TOCropViewController",
defaultLocalization: "en",
platforms: [.iOS(.v12)],
platforms: platforms,
products: [
.library(
name: "TOCropViewController",
Expand Down

0 comments on commit da8eca7

Please sign in to comment.