mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Improve settings
This commit is contained in:
20
Shared/Settings/SettingsHeader.swift
Normal file
20
Shared/Settings/SettingsHeader.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
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")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user