修复: ContentView 缺少 import UIKit,FriendControlView 移除不兼容的 autocapitalization,改用 textCase(.uppercase)

这个提交包含在:
JGZ_YES
2026-08-12 13:32:52 +08:00
父节点 47aa3c64b9
当前提交 bb6f490bcd
修改 2 个文件,包含 2 行新增1 行删除
+1
查看文件
@@ -1,4 +1,5 @@
import SwiftUI import SwiftUI
import UIKit
struct ContentView: View { struct ContentView: View {
@EnvironmentObject var store: Store @EnvironmentObject var store: Store
+1 -1
查看文件
@@ -12,8 +12,8 @@ struct FriendControlView: View {
Section { Section {
HStack { HStack {
TextField("输入朋友的控制码", text: $friendCode) TextField("输入朋友的控制码", text: $friendCode)
.autocapitalization(.allCharacters)
.disableAutocorrection(true) .disableAutocorrection(true)
.textCase(.uppercase)
Button("查询") { lookupFriend() } Button("查询") { lookupFriend() }
.buttonStyle(.borderedProminent) .buttonStyle(.borderedProminent)
.controlSize(.small) .controlSize(.small)