Fixes non-iOS builds for new text additions
This commit is contained in:
parent
e4d699b678
commit
affe67f2cf
|
@ -1,6 +1,7 @@
|
|||
import SwiftUI
|
||||
import SwiftBackports
|
||||
|
||||
#if os(iOS)
|
||||
extension Backport where Wrapped: View {
|
||||
func textInputAutocapitalization(_ autocapitalization: Backport<Any>.TextInputAutocapitalization?) -> some View {
|
||||
wrapped.modifier(
|
||||
|
@ -60,3 +61,4 @@ private struct AutoCapitalizationModifier: ViewModifier {
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import SwiftUI
|
||||
import SwiftBackports
|
||||
|
||||
#if os(iOS)
|
||||
@available(iOS, deprecated: 15)
|
||||
public extension Backport where Wrapped: View {
|
||||
/// Adds an action to perform when the user submits a value to this view.
|
||||
///
|
||||
|
@ -159,3 +161,4 @@ private struct SubmitModifier: ViewModifier {
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue