Skip to content

Commit a609f0d

Browse files
committed
Update
1 parent f266dcb commit a609f0d

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

Package.resolved

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ let package = Package(
1818
)
1919
],
2020
dependencies: [
21-
.package(url: "https://github.com/divadretlaw/WindowSceneReader.git", from: "2.0.0"),
21+
.package(url: "https://github.com/divadretlaw/WindowSceneReader.git", from: "2.1.0"),
2222
.package(url: "https://github.com/evgenyneu/keychain-swift.git", from: "20.0.0"),
23-
.package(url: "https://github.com/siteline/swiftui-introspect", from: "0.10.0")
23+
.package(url: "https://github.com/siteline/swiftui-introspect", from: "1.0.0")
2424
],
2525
targets: [
2626
.target(

Sources/PasscodeCore/API.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public extension View {
4141
@ViewBuilder input: @escaping (_ dismiss: DismissPasscodeAction) -> I,
4242
@ViewBuilder background: @escaping () -> B
4343
) -> some View where I: View, B: View {
44-
modifier(PasscodeViewModifierHelper(mode: mode, input: input, background: background))
44+
modifier {
45+
PasscodeViewModifierHelper(mode: mode, input: input, background: background)
46+
}
4547
}
4648

4749
// MARK: Privacy View
@@ -88,7 +90,9 @@ public extension View {
8890
@ViewBuilder input: @escaping (_ dismiss: DismissPasscodeAction) -> I,
8991
@ViewBuilder background: @escaping () -> B
9092
) -> some View where I: View, B: View {
91-
modifier(PasscodeViewModifier(windowScene: windowScene, mode: mode, input: input, background: background))
93+
modifier {
94+
PasscodeViewModifier(windowScene: windowScene, mode: mode, input: input, background: background)
95+
}
9296
}
9397

9498
// MARK: Privacy View

Sources/PasscodeKit/Extension/BindingExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import SwiftUI
99

1010
extension Binding where Value == String {
11-
func max(_ limit: Int) -> Self {
11+
@MainActor func max(_ limit: Int) -> Self {
1212
if self.wrappedValue.count > limit {
1313
Task { @MainActor in
1414
self.wrappedValue = String(self.wrappedValue.prefix(limit))

0 commit comments

Comments
 (0)