mirror of
				https://github.com/maxgoedjen/secretive.git
				synced 2025-10-31 23:40: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())
 | |
|     }
 | |
| 
 | |
| }
 |