mirror of
				https://github.com/laosb/CropImage.git
				synced 2025-10-31 06:11:38 +00:00 
			
		
		
		
	update docs
This commit is contained in:
		
							parent
							
								
									1d66f10bff
								
							
						
					
					
						commit
						a74e54dd00
					
				
					 3 changed files with 6 additions and 6 deletions
				
			
		|  | @ -2,9 +2,9 @@ | |||
| 
 | ||||
| A simple SwiftUI view where user can move and resize an image to a pre-defined size. | ||||
| 
 | ||||
| Supports iOS 14.0 and above, or macOS Ventura 13.0 and above. | ||||
| Supports iOS 14.0 and above, visionOS 1.0 and above or macOS Ventura 13.0 and above. | ||||
| 
 | ||||
| - Supports both iOS and macOS | ||||
| - Supports iOS, visionOS and macOS | ||||
| - Use `ImageRenderer` to render the cropped image, when possible | ||||
| - Very lightweight | ||||
| - (Optionally) bring your own crop UI | ||||
|  |  | |||
|  | @ -11,12 +11,12 @@ import Foundation | |||
| import AppKit | ||||
| /// The image object type, aliased to each platform. | ||||
| /// | ||||
| /// On macOS, it's `NSImage` and on iOS it's `UIImage`. | ||||
| /// On macOS, it's `NSImage` and on iOS/visionOS it's `UIImage`. | ||||
| public typealias PlatformImage = NSImage | ||||
| #else | ||||
| import UIKit | ||||
| /// The image object type, aliased to each platform. | ||||
| /// | ||||
| /// On macOS, it's `NSImage` and on iOS it's `UIImage`. | ||||
| /// On macOS, it's `NSImage` and on iOS/visionOS it's `UIImage`. | ||||
| public typealias PlatformImage = UIImage | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 infinitepower18
						infinitepower18