mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-15 08:50:57 +00:00
* Integrations to window * Cleanup of presenting. * Older name for copy * For copyable view too
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())
|
|
}
|
|
|
|
}
|