Skip to content

Commit

Permalink
refactor(AppSecureStorage.swift): remove binding compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
Build Pipeline committed May 24, 2023
1 parent 562e1df commit 8d3d8f3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions AppSecureStorage/Sources/AppSecureStorage/AppSecureStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ public struct AppSecureStorage: DynamicProperty {
value = newValue
}
}

public var projectedValue: Binding<String> {
Binding(
get: { wrappedValue ?? "" },
set: { wrappedValue = $0 }
)
}

/// Binding compliant
// public var projectedValue: Binding<String> {
// Binding(
// get: { wrappedValue ?? "" },
// set: { wrappedValue = $0 }
// )
// }
public init(_ key: String, accessibility:KeychainItemAccessibility = .whenUnlocked ) {
self.key = key
self.accessibility = accessibility
Expand Down

0 comments on commit 8d3d8f3

Please sign in to comment.