Skip to content

Commit

Permalink
Target macOS 10.15, iOS 13, tvOS 13, watchOS 6
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 18, 2022
1 parent 60013d9 commit ea11b7a
Show file tree
Hide file tree
Showing 20 changed files with 65 additions and 144 deletions.
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import PackageDescription
let package = Package(
name: "Defaults",
platforms: [
.macOS(.v10_13),
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v5)
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13),
.watchOS(.v6)
],
products: [
.library(
Expand Down
2 changes: 2 additions & 0 deletions Sources/Defaults/Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ extension Defaults {
// Key Type UserDefaults name Default value
}
```

- Warning: The key must be ASCII, not start with `@`, and cannot contain a dot (`.`).
*/
public final class Key<Value: Serializable>: _AnyKey {
/**
Expand Down
4 changes: 0 additions & 4 deletions Sources/Defaults/Observation+Combine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ extension Defaults {
/**
Custom `Subscription` for `UserDefaults` key observation.
*/
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
final class DefaultsSubscription<SubscriberType: Subscriber>: Subscription where SubscriberType.Input == BaseChange {
private var subscriber: SubscriberType?
private var observation: UserDefaultsKeyObservation?
Expand Down Expand Up @@ -43,7 +42,6 @@ extension Defaults {
/**
Custom Publisher, which is using DefaultsSubscription.
*/
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
struct DefaultsPublisher: Publisher {
typealias Output = BaseChange
typealias Failure = Never
Expand Down Expand Up @@ -87,7 +85,6 @@ extension Defaults {
}
```
*/
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
public static func publisher<Value: Serializable>(
_ key: Key<Value>,
options: ObservationOptions = [.initial]
Expand All @@ -101,7 +98,6 @@ extension Defaults {
/**
Publisher for multiple `Key<T>` observation, but without specific information about changes.
*/
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
public static func publisher(
keys: _AnyKey...,
options: ObservationOptions = [.initial]
Expand Down
7 changes: 0 additions & 7 deletions Sources/Defaults/SwiftUI.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#if canImport(Combine)
import SwiftUI
import Combine

@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Defaults {
@MainActor
final class Observable<Value: Serializable>: ObservableObject {
Expand Down Expand Up @@ -67,7 +65,6 @@ Access stored values from SwiftUI.

This is similar to `@AppStorage` but it accepts a ``Defaults/Key`` and many more types.
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@propertyWrapper
public struct Default<Value: Defaults.Serializable>: DynamicProperty {
public typealias Publisher = AnyPublisher<Defaults.KeyChange<Value>, Never>
Expand Down Expand Up @@ -152,7 +149,6 @@ public struct Default<Value: Defaults.Serializable>: DynamicProperty {
}
}

@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Default where Value: Equatable {
/**
Indicates whether the value is the same as the default value.
Expand Down Expand Up @@ -234,7 +230,6 @@ extension Defaults.Toggle {
}
}

@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Defaults {
// TODO: Expose this publicly at some point.
private static func events<Value: Serializable>(
Expand All @@ -257,7 +252,6 @@ extension Defaults {
}
}

@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@propertyWrapper
private struct ViewStorage<Value>: DynamicProperty {
private final class ValueBox {
Expand All @@ -281,4 +275,3 @@ private struct ViewStorage<Value>: DynamicProperty {
self._valueBox = .init(wrappedValue: ValueBox(value()))
}
}
#endif
2 changes: 0 additions & 2 deletions Tests/DefaultsTests/DefaultsAnySeriliazableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ final class DefaultsAnySerializableTests: XCTestCase {
}
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveKeyCombine() {
let key = Defaults.Key<Defaults.AnySerializable>("observeAnyKeyCombine", default: 123)
let expect = expectation(description: "Observation closure being called")
Expand Down Expand Up @@ -396,7 +395,6 @@ final class DefaultsAnySerializableTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveOptionalKeyCombine() {
let key = Defaults.Key<Defaults.AnySerializable?>("observeAnyOptionalKeyCombine")
let expect = expectation(description: "Observation closure being called")
Expand Down
2 changes: 0 additions & 2 deletions Tests/DefaultsTests/DefaultsArrayTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ final class DefaultsArrayTests: XCTestCase {
XCTAssertEqual(Defaults[.array][0], newName)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveKeyCombine() {
let key = Defaults.Key<[String]>("observeArrayKeyCombine", default: fixtureArray)
let newName = "Chen"
Expand All @@ -108,7 +107,6 @@ final class DefaultsArrayTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveOptionalKeyCombine() {
let key = Defaults.Key<[String]?>("observeArrayOptionalKeyCombine")
let newName = ["Chen"]
Expand Down
4 changes: 0 additions & 4 deletions Tests/DefaultsTests/DefaultsCodableEnumTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ final class DefaultsCodableEnumTests: XCTestCase {
XCTAssertNotNil(UserDefaults.standard.integer(forKey: keyName))
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveKeyCombine() {
let key = Defaults.Key<FixtureCodableEnum>("observeCodableEnumKeyCombine", default: .tenMinutes)
let expect = expectation(description: "Observation closure being called")
Expand Down Expand Up @@ -159,7 +158,6 @@ final class DefaultsCodableEnumTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveOptionalKeyCombine() {
let key = Defaults.Key<FixtureCodableEnum?>("observeCodableEnumOptionalKeyCombine")
let expect = expectation(description: "Observation closure being called")
Expand Down Expand Up @@ -188,7 +186,6 @@ final class DefaultsCodableEnumTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveArrayKeyCombine() {
let key = Defaults.Key<[FixtureCodableEnum]>("observeCodableEnumArrayKeyCombine", default: [.tenMinutes])
let expect = expectation(description: "Observation closure being called")
Expand Down Expand Up @@ -216,7 +213,6 @@ final class DefaultsCodableEnumTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveDictionaryKeyCombine() {
let key = Defaults.Key<[String: FixtureCodableEnum]>("observeCodableEnumDictionaryKeyCombine", default: ["0": .tenMinutes])
let expect = expectation(description: "Observation closure being called")
Expand Down
4 changes: 0 additions & 4 deletions Tests/DefaultsTests/DefaultsCodableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ final class DefaultsCodableTests: XCTestCase {
XCTAssertNotNil(UserDefaults.standard.data(forKey: keyName))
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveKeyCombine() {
let key = Defaults.Key<Unicorn>("observeCodableKeyCombine", default: fixtureCodable)
let expect = expectation(description: "Observation closure being called")
Expand All @@ -188,7 +187,6 @@ final class DefaultsCodableTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveOptionalKeyCombine() {
let key = Defaults.Key<Unicorn?>("observeCodableOptionalKeyCombine")
let expect = expectation(description: "Observation closure being called")
Expand Down Expand Up @@ -216,7 +214,6 @@ final class DefaultsCodableTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveArrayKeyCombine() {
let key = Defaults.Key<[Unicorn]>("observeCodableArrayKeyCombine", default: [fixtureCodable])
let expect = expectation(description: "Observation closure being called")
Expand All @@ -242,7 +239,6 @@ final class DefaultsCodableTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveDictionaryKeyCombine() {
let key = Defaults.Key<[String: Unicorn]>("observeCodableDictionaryKeyCombine", default: ["0": fixtureCodable])
let expect = expectation(description: "Observation closure being called")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ final class DefaultsCollectionCustomElementTests: XCTestCase {
XCTAssertEqual(Defaults[.collectionCustomElementDictionary]["1"]?[0], fixtureCustomCollection2)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveKeyCombine() {
let key = Defaults.Key<Bag<Item>>("observeCollectionCustomElementKeyCombine", default: .init(items: [fixtureCustomCollection]))
let expect = expectation(description: "Observation closure being called")
Expand All @@ -196,7 +195,6 @@ final class DefaultsCollectionCustomElementTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveOptionalKeyCombine() {
let key = Defaults.Key<Bag<Item>?>("observeCollectionCustomElementOptionalKeyCombine")
let expect = expectation(description: "Observation closure being called")
Expand Down Expand Up @@ -225,7 +223,6 @@ final class DefaultsCollectionCustomElementTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveArrayKeyCombine() {
let key = Defaults.Key<[Bag<Item>]>("observeCollectionCustomElementArrayKeyCombine", default: [.init(items: [fixtureCustomCollection])])
let expect = expectation(description: "Observation closure being called")
Expand All @@ -251,7 +248,6 @@ final class DefaultsCollectionCustomElementTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveDictionaryKeyCombine() {
let key = Defaults.Key<[String: Bag<Item>]>("observeCollectionCustomElementDictionaryKeyCombine", default: ["0": .init(items: [fixtureCustomCollection])])
let expect = expectation(description: "Observation closure being called")
Expand Down
4 changes: 0 additions & 4 deletions Tests/DefaultsTests/DefaultsCollectionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ final class DefaultsCollectionTests: XCTestCase {
XCTAssertEqual(Defaults[.collectionDictionary]["1"]?[0], fixtureCollection[0])
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveKeyCombine() {
let key = Defaults.Key<Bag<String>>("observeCollectionKeyCombine", default: .init(items: fixtureCollection))
let item = "Grape"
Expand All @@ -183,7 +182,6 @@ final class DefaultsCollectionTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveOptionalKeyCombine() {
let key = Defaults.Key<Bag<String>?>("observeCollectionOptionalKeyCombine")
let item = "Grape"
Expand Down Expand Up @@ -213,7 +211,6 @@ final class DefaultsCollectionTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveArrayKeyCombine() {
let key = Defaults.Key<[Bag<String>]>("observeCollectionArrayKeyCombine", default: [.init(items: fixtureCollection)])
let item = "Grape"
Expand All @@ -240,7 +237,6 @@ final class DefaultsCollectionTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveDictionaryKeyCombine() {
let key = Defaults.Key<[String: Bag<String>]>("observeCollectionArrayKeyCombine", default: ["0": .init(items: fixtureCollection)])
let item = "Grape"
Expand Down
4 changes: 0 additions & 4 deletions Tests/DefaultsTests/DefaultsCustomBridgeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ final class DefaultsCustomBridge: XCTestCase {
XCTAssertEqual(Defaults[.customBridgeDictionary]["0"], newUser)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveKeyCombine() {
let key = Defaults.Key<User>("observeCustomBridgeKeyCombine", default: fixtureCustomBridge)
let newUser = User(username: "sindresorhus", password: "123456789")
Expand All @@ -269,7 +268,6 @@ final class DefaultsCustomBridge: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveOptionalKeyCombine() {
let key = Defaults.Key<User?>("observeCustomBridgeOptionalKeyCombine")
let newUser = User(username: "sindresorhus", password: "123456789")
Expand Down Expand Up @@ -299,7 +297,6 @@ final class DefaultsCustomBridge: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveArrayKeyCombine() {
let key = Defaults.Key<[User]>("observeCustomBridgeArrayKeyCombine", default: [fixtureCustomBridge])
let newUser = User(username: "sindresorhus", password: "123456789")
Expand All @@ -326,7 +323,6 @@ final class DefaultsCustomBridge: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveDictionaryCombine() {
let key = Defaults.Key<[String: User]>("observeCustomBridgeDictionaryKeyCombine", default: ["0": fixtureCustomBridge])
let newUser = User(username: "sindresorhus", password: "123456789")
Expand Down
2 changes: 0 additions & 2 deletions Tests/DefaultsTests/DefaultsDictionaryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ final class DefaultsDictionaryTests: XCTestCase {
XCTAssertEqual(Defaults[.dictionary]["0"], newName)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveKeyCombine() {
let key = Defaults.Key<[String: String]>("observeDictionaryKeyCombine", default: fixtureDictionary)
let expect = expectation(description: "Observation closure being called")
Expand All @@ -91,7 +90,6 @@ final class DefaultsDictionaryTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveOptionalKeyCombine() {
let key = Defaults.Key<[String: String]?>("observeDictionaryOptionalKeyCombine")
let expect = expectation(description: "Observation closure being called")
Expand Down
4 changes: 0 additions & 4 deletions Tests/DefaultsTests/DefaultsEnumTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ final class DefaultsEnumTests: XCTestCase {
XCTAssertEqual(Defaults[.enumDictionary]["0"], .halfHour)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveKeyCombine() {
let key = Defaults.Key<FixtureEnum>("observeEnumKeyCombine", default: .tenMinutes)
let expect = expectation(description: "Observation closure being called")
Expand Down Expand Up @@ -146,7 +145,6 @@ final class DefaultsEnumTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveOptionalKeyCombine() {
let key = Defaults.Key<FixtureEnum?>("observeEnumOptionalKeyCombine")
let expect = expectation(description: "Observation closure being called")
Expand Down Expand Up @@ -176,7 +174,6 @@ final class DefaultsEnumTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveArrayKeyCombine() {
let key = Defaults.Key<[FixtureEnum]>("observeEnumArrayKeyCombine", default: [.tenMinutes])
let expect = expectation(description: "Observation closure being called")
Expand Down Expand Up @@ -205,7 +202,6 @@ final class DefaultsEnumTests: XCTestCase {
waitForExpectations(timeout: 10)
}

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, iOSApplicationExtension 13.0, macOSApplicationExtension 10.15, tvOSApplicationExtension 13.0, watchOSApplicationExtension 6.0, *)
func testObserveDictionaryKeyCombine() {
let key = Defaults.Key<[String: FixtureEnum]>("observeEnumDictionaryKeyCombine", default: ["0": .tenMinutes])
let expect = expectation(description: "Observation closure being called")
Expand Down
Loading

0 comments on commit ea11b7a

Please sign in to comment.