update docs

This commit is contained in:
infinitepower18 2024-03-19 01:10:19 +00:00 committed by Shibo Lyu
parent 1d66f10bff
commit a74e54dd00
3 changed files with 6 additions and 6 deletions

View file

@ -5,9 +5,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

View file

@ -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

View file

@ -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