Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
divadretlaw committed Sep 24, 2023
1 parent f266dcb commit a609f0d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/siteline/swiftui-introspect",
"state" : {
"revision" : "ccb973cfff703cba53fb88197413485c060eb26b",
"version" : "0.10.0"
"revision" : "3ba734dd20faada0e3234b68e78db97005315f0e",
"version" : "1.0.0"
}
},
{
"identity" : "windowreader",
"kind" : "remoteSourceControl",
"location" : "https://github.com/divadretlaw/WindowReader",
"state" : {
"revision" : "26fdb98bcc5f564a0d40bc6600aa718520e27925",
"version" : "1.0.2"
"revision" : "607785674f74a179ea8ce1c4a8aa6a255767f5c3",
"version" : "1.1.0"
}
},
{
"identity" : "windowscenereader",
"kind" : "remoteSourceControl",
"location" : "https://github.com/divadretlaw/WindowSceneReader.git",
"state" : {
"revision" : "3e39955e957b5e7011c94727ede4490cffa0ae28",
"version" : "2.0.0"
"revision" : "c4e3b7ceeb65dfed0fb05f739640cda45a67a5eb",
"version" : "2.1.0"
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/divadretlaw/WindowSceneReader.git", from: "2.0.0"),
.package(url: "https://github.com/divadretlaw/WindowSceneReader.git", from: "2.1.0"),
.package(url: "https://github.com/evgenyneu/keychain-swift.git", from: "20.0.0"),
.package(url: "https://github.com/siteline/swiftui-introspect", from: "0.10.0")
.package(url: "https://github.com/siteline/swiftui-introspect", from: "1.0.0")
],
targets: [
.target(
Expand Down
8 changes: 6 additions & 2 deletions Sources/PasscodeCore/API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public extension View {
@ViewBuilder input: @escaping (_ dismiss: DismissPasscodeAction) -> I,
@ViewBuilder background: @escaping () -> B
) -> some View where I: View, B: View {
modifier(PasscodeViewModifierHelper(mode: mode, input: input, background: background))
modifier {
PasscodeViewModifierHelper(mode: mode, input: input, background: background)
}
}

// MARK: Privacy View
Expand Down Expand Up @@ -88,7 +90,9 @@ public extension View {
@ViewBuilder input: @escaping (_ dismiss: DismissPasscodeAction) -> I,
@ViewBuilder background: @escaping () -> B
) -> some View where I: View, B: View {
modifier(PasscodeViewModifier(windowScene: windowScene, mode: mode, input: input, background: background))
modifier {
PasscodeViewModifier(windowScene: windowScene, mode: mode, input: input, background: background)
}
}

// MARK: Privacy View
Expand Down
2 changes: 1 addition & 1 deletion Sources/PasscodeKit/Extension/BindingExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import SwiftUI

extension Binding where Value == String {
func max(_ limit: Int) -> Self {
@MainActor func max(_ limit: Int) -> Self {
if self.wrappedValue.count > limit {
Task { @MainActor in
self.wrappedValue = String(self.wrappedValue.prefix(limit))
Expand Down

0 comments on commit a609f0d

Please sign in to comment.