mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-07 13:00:57 +00:00
* WIP * WIP * WIP * Tweaks. * WIP * WIP * WIP * WIP * WIP * Cleanup * WIP * WIP * WIP * WIP * WIP * WIP * WIP * REmove setup menu item * WIP * . * . * . * Cleaup.
20 lines
302 B
Swift
20 lines
302 B
Swift
import SwiftUI
|
|
|
|
struct ErrorStyleModifier: ViewModifier {
|
|
|
|
func body(content: Content) -> some View {
|
|
content
|
|
.foregroundStyle(.red)
|
|
.font(.callout)
|
|
}
|
|
|
|
}
|
|
|
|
extension View {
|
|
|
|
func errorStyle() -> some View {
|
|
modifier(ErrorStyleModifier())
|
|
}
|
|
|
|
}
|