Skip to content

Commit c279c4b

Browse files
fix(patch): lower minimal required platform versions (#17)
1 parent d78d51e commit c279c4b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import PackageDescription
66

77
let package = Package(
88
name: "Equatable",
9-
platforms: [.macOS(.v14), .iOS(.v17), .tvOS(.v17), .watchOS(.v10), .macCatalyst(.v17)],
9+
platforms: [.macOS(.v12), .iOS(.v15), .tvOS(.v15), .watchOS(.v8), .macCatalyst(.v15)],
1010
products: [
1111
// Products define the executables and libraries a package produces, making them visible to other packages.
1212
.library(

Sources/EquatableClient/main.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Equatable
22
#if canImport(SwiftUI)
3+
import Observation
34
import SwiftUI
45

56
struct MyView: View {
@@ -74,9 +75,11 @@ struct Anon {
7475
let basicString: String
7576
}
7677

78+
@available(iOS 17.0, macOS 14.0, watchOS 10, tvOS 17, visionOS 1, *)
7779
@Observable
7880
final class TitleDataModel {}
7981

82+
@available(iOS 17.0, macOS 14.0, watchOS 10, tvOS 17, visionOS 1, *)
8083
@Equatable
8184
struct TitleView: View {
8285
@State var dataModel = TitleDataModel()

0 commit comments

Comments
 (0)