Skip to content

Commit

Permalink
Merge pull request #448 from davbeck/master
Browse files Browse the repository at this point in the history
Change iOS deployment target for Xcode 12
  • Loading branch information
TimOliver authored Dec 6, 2020
2 parents 3c92e95 + 05a4cc9 commit bc3a485
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,9 +3,18 @@

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",
platforms: [.iOS(.v9)],
platforms: platforms,
products: [
.library(
name: "TOCropViewController",
Expand Down

0 comments on commit bc3a485

Please sign in to comment.