Text(talkModel.promptText)
.font(.title)
.padding()
.frame(maxWidth: .infinity)
.background(.ultraThinMaterial)
.foregroundColor(Color(UIColor.label))
font(.body)
- .body
- .callout
- .caption
- .caption2
- .footnote
- .headline
- .largeTitle
- .subheadline
- .title
- .title2
- .title3
Color(UIColor.systemGray)
- .systemBlue
- .systemBrown
- .systemCyan
- .systemGreen
- .systemIndigo
- .systemMint
- .systemOrange
- .systemPink
- .systemPurple
- .systemRed
- .systemTeal
- .systemYellow
- .systemGray
- .systemGray2
- .systemGray3
- .systemGray4
- .systemGray5
- .systemGray6
- .clear
- .black
- .blue
- .brown
- .cyan
- .darkGray
- .gray
- .green
- .lightGray
- .magenta
- .orange
- .purple
- .red
- .white
- .yellow
Textfield("Name", text: $text)
.onSubmit {
action()
}
.submitLabel(.send)
.textSelection(.enabled)
.textFieldStyle(.roundedBoder)
.disableAutocorrection(false)
.