Fixes macOS compilation

This commit is contained in:
Shaps Benkau 2023-05-08 14:33:41 +01:00
parent c15b9fc224
commit 2d64238c2d
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import SwiftUI
import SwiftBackports
#if os(iOS)
public extension Backport where Wrapped: View {
func focused<Value>(_ binding: Binding<Value?>, equals value: Value) -> some View where Value: Hashable {
wrapped.modifier(FocusModifier(focused: binding, value: value))
@ -128,4 +129,4 @@ private extension View {
background(WillDisappearHandler(onWillDisappear: perform))
}
}
#endif