From 5670ea13e8ad33e9cc3197f6d13ce492dc0e46ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rutkowski?= Date: Sat, 14 Jan 2023 16:55:47 +0100 Subject: [PATCH] tvOS and watchOS compatibility --- Package.swift | 2 +- README.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index 319a1bd..9d3cda4 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let package = Package( name: "DebouncedOnChange", - platforms: [.iOS(.v14), .macOS(.v11)], + platforms: [.iOS(.v14), .macOS(.v11), .tvOS(.v14), .watchOS(.v7)], products: [ .library( name: "DebouncedOnChange", diff --git a/README.md b/README.md index e5ea1c4..b0af2fc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # DebouncedOnChange +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FTunous%2FDebouncedOnChange%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/Tunous/DebouncedOnChange) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FTunous%2FDebouncedOnChange%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/Tunous/DebouncedOnChange) + A SwiftUI onChange view modifier with additional debounce time. ## Usage @@ -27,7 +29,7 @@ struct ExampleView: View { Add the following to the dependencies array in your "Package.swift" file: ```swift -.package(url: "https://github.com/Tunous/DebouncedOnChange.git", .upToNextMajor(from: "1.0.0")) +.package(url: "https://github.com/Tunous/DebouncedOnChange.git", .upToNextMajor(from: "1.0.2")) ``` Or add https://github.com/Tunous/DebouncedOnChange.git, to the list of Swift packages for any project in Xcode.