修复: ContentView 缺少 import UIKit,FriendControlView 移除不兼容的 autocapitalization,改用 textCase(.uppercase)
这个提交包含在:
@@ -1,4 +1,5 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
import UIKit
|
||||||
|
|
||||||
struct ContentView: View {
|
struct ContentView: View {
|
||||||
@EnvironmentObject var store: Store
|
@EnvironmentObject var store: Store
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户