mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 08:18:19 +00:00
21 lines
403 B
Swift
21 lines
403 B
Swift
import SwiftUI
|
|
|
|
struct SettingsHeader: View {
|
|
var text: String
|
|
|
|
var body: some View {
|
|
Text(text)
|
|
#if os(macOS) || os(tvOS)
|
|
.font(.title3)
|
|
.foregroundColor(.secondary)
|
|
.focusable(false)
|
|
#endif
|
|
}
|
|
}
|
|
|
|
struct SettingsHeader_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
SettingsHeader(text: "Header")
|
|
}
|
|
}
|