mirror of
				https://github.com/laosb/CropImage.git
				synced 2025-10-31 06:11:38 +00:00 
			
		
		
		
	Adjust button style for visionOS
This commit is contained in:
		
							parent
							
								
									a74e54dd00
								
							
						
					
					
						commit
						57ff1a7b86
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -29,12 +29,16 @@ public struct DefaultControlsView: View { | |||
|                 .labelStyle(.iconOnly) | ||||
|                 .padding(.horizontal, 6) | ||||
|                 .padding(.vertical, 3) | ||||
|                 #if !os(visionOS) | ||||
|                 .background( | ||||
|                     RoundedRectangle(cornerRadius: 5, style: .continuous) | ||||
|                         .fill(.background) | ||||
|                 ) | ||||
|                 #endif | ||||
|         } | ||||
|         #if !os(visionOS) | ||||
|         .buttonStyle(.plain) | ||||
|         #endif | ||||
|         .padding() | ||||
|     } | ||||
| 
 | ||||
|  | @ -57,11 +61,15 @@ public struct DefaultControlsView: View { | |||
|                 .foregroundColor(.accentColor) | ||||
|                 .labelStyle(.iconOnly) | ||||
|                 .padding(1) | ||||
|                 #if !os(visionOS) | ||||
|                 .background( | ||||
|                     Circle().fill(.background) | ||||
|                 ) | ||||
|                 #endif | ||||
|         } | ||||
|         #if !os(visionOS) | ||||
|         .buttonStyle(.plain) | ||||
|         #endif | ||||
|         .padding() | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 infinitepower18
						infinitepower18