20 lines
591 B
Swift
20 lines
591 B
Swift
|
|
import SwiftUI
|
||
|
|
|
||
|
|
struct KeyboardHint: View {
|
||
|
|
let title: String
|
||
|
|
|
||
|
|
var body: some View {
|
||
|
|
Text(title)
|
||
|
|
.font(.caption2.weight(.semibold))
|
||
|
|
.monospaced()
|
||
|
|
.foregroundStyle(.secondary)
|
||
|
|
.padding(.horizontal, 6)
|
||
|
|
.padding(.vertical, 4)
|
||
|
|
.background(.regularMaterial, in: RoundedRectangle(cornerRadius: 6, style: .continuous))
|
||
|
|
.overlay(
|
||
|
|
RoundedRectangle(cornerRadius: 6, style: .continuous)
|
||
|
|
.strokeBorder(Color.primary.opacity(0.08), lineWidth: 1)
|
||
|
|
)
|
||
|
|
}
|
||
|
|
}
|