mirror of
https://github.com/laosb/CropImage.git
synced 2025-05-01 08:01:09 +00:00
update docs
This commit is contained in:
parent
e11a3cc7cf
commit
3745532814
3 changed files with 6 additions and 6 deletions
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
A simple SwiftUI view where user can move and resize an image to a pre-defined size.
|
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
|
- Use `ImageRenderer` to render the cropped image, when possible
|
||||||
- Very lightweight
|
- Very lightweight
|
||||||
- (Optionally) bring your own crop UI
|
- (Optionally) bring your own crop UI
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
A simple SwiftUI view where user can move and resize an image to a pre-defined size.
|
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
|
- Use `ImageRenderer` to render the cropped image, when possible
|
||||||
- Very lightweight
|
- Very lightweight
|
||||||
- (Optionally) bring your own crop UI
|
- (Optionally) bring your own crop UI
|
||||||
|
|
|
@ -11,12 +11,12 @@ import Foundation
|
||||||
import AppKit
|
import AppKit
|
||||||
/// The image object type, aliased to each platform.
|
/// 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
|
public typealias PlatformImage = NSImage
|
||||||
#else
|
#else
|
||||||
import UIKit
|
import UIKit
|
||||||
/// The image object type, aliased to each platform.
|
/// 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
|
public typealias PlatformImage = UIImage
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue