Skip to content

Commit f1486ce

Browse files
committed
Fix: Add platform versions to Package.swift
- Opening FlowLayout project in Xcode 16.2 encounters numerous API availability errors - such as: - Alignment is only available in iOS 13.0 or newer - ProposedViewSize is only available in iOS 16.0 or newer - These errors also occur when import FlowLayout into another project in Swift Package Manager - Add iOS 16 and platform equivalents to solve this availability - Platform versions fetched from https://xcodereleases.com/
1 parent 797ee8b commit f1486ce

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import PackageDescription
55

66
let package = Package(
77
name: "FlowLayout",
8+
platforms: [.iOS(.v16), .macOS(.v12), .watchOS(.v9), .tvOS(.v16)],
89
products: [
910
// Products define the executables and libraries a package produces, making them visible to other packages.
1011
.library(

0 commit comments

Comments
 (0)