From 6b554ae10d88dbb0291363e11d9eb4a1e8867dc1 Mon Sep 17 00:00:00 2001 From: Rafal Augustyniak Date: Mon, 28 Oct 2024 15:32:01 -0400 Subject: [PATCH] fix ios 16 deprecation warning --- examples/swift/hello_world/BUILD | 4 ++-- examples/swift/hello_world/ConfigurationView.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/swift/hello_world/BUILD b/examples/swift/hello_world/BUILD index 42f735851..a416a0d6b 100644 --- a/examples/swift/hello_world/BUILD +++ b/examples/swift/hello_world/BUILD @@ -41,7 +41,7 @@ ios_application( "ipad", ], infoplists = ["Info.plist"], - minimum_os_version = "16.0", + minimum_os_version = "15.0", provisioning_profile = select({ "//bazel:ios_device_build": "//bazel/ios:ios_provisioning_profile", "//conditions:default": None, @@ -71,7 +71,7 @@ ios_application( "ipad", ], infoplists = ["Info.plist"], - minimum_os_version = "16.0", + minimum_os_version = "15.0", provisioning_profile = select({ "//bazel:ios_device_build": "//bazel/ios:ios_provisioning_profile", "//conditions:default": None, diff --git a/examples/swift/hello_world/ConfigurationView.swift b/examples/swift/hello_world/ConfigurationView.swift index fbda36ddd..0e8eaae47 100644 --- a/examples/swift/hello_world/ConfigurationView.swift +++ b/examples/swift/hello_world/ConfigurationView.swift @@ -16,7 +16,7 @@ struct ConfigurationView: View { .autocapitalization(.none) Text("API Key").frame(maxWidth: .infinity) - TextField(text: $configuration.apiKey, axis: .vertical) { Text("Enter API Key") } + TextEditor(text: $configuration.apiKey) .autocapitalization(.none) Spacer()