Skip to content

Commit 0e88e14

Browse files
committed
Update the readme for visionOS platform
1 parent 81810e3 commit 0e88e14

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

README.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ The framework provide the different View structs, which API match the SwiftUI fr
2020

2121
## Apple VisionOS
2222

23-
SDWebImageSwiftUI can compiled for visionOS platform. However, due to the package manager support, we can not integrate using the exists function.
23+
From v3.0.0 (beta), SDWebImageSwiftUI can be compiled for visionOS platform. However, due to the lacking package manager support (need tools update), we don't support CocoaPods/SPM yet.
2424

25-
So, in [visionOS branch](https://github.com/SDWebImage/SDWebImageSwiftUI/tree/feature/visionOS), our demo use the Xcode's built-in dependency to build.
25+
You can only use the Xcode's built-in package manager dependency to build on visionOS.
2626

27-
You can build and run to see the example (still need improvement)
27+
To run the visionOS example, you need to clone and add both `SDWebImage` and `SDWebImageSwiftUI`, open the `SDWebImageSwiftUI.xcworkspace` and drag those folders to become local package dependency, see: [Editing a package dependency as a local package](https://developer.apple.com/documentation/xcode/editing-a-package-dependency-as-a-local-package)
2828

2929
## Features
3030

@@ -58,32 +58,17 @@ All issue reports, feature requests, contributions, and GitHub stars are welcome
5858

5959
## Requirements
6060

61-
+ Xcode 12+
61+
+ Xcode 14+
6262
+ iOS 14+
6363
+ macOS 11+
6464
+ tvOS 14+
6565
+ watchOS 7+
6666

67-
## SwiftUI 2.0 Compatibility
67+
## for SwiftUI 1.0 (iOS 13)
6868

6969
iOS 14(macOS 11) introduce the SwiftUI 2.0, which keep the most API compatible, but changes many internal behaviors, which breaks the SDWebImageSwiftUI's function.
7070

71-
From v2.0.0, we adopt SwiftUI 2.0 and iOS 14(macOS 11)'s behavior. You can use `WebImage` and `AnimatedImage` inside the new `LazyVStack`.
72-
73-
```swift
74-
var body: some View {
75-
ScrollView {
76-
LazyVStack {
77-
ForEach(urls, id: \.self) { url in
78-
AnimatedImage(url: url)
79-
}
80-
}
81-
}
82-
}
83-
```
84-
85-
Note: However, many differences behavior between iOS 13/14 is hard to fixup. Due to maintain issue, from SDWebImageSwiftUI v3.0, iOS 13 is no longer supported. We always match SwiftUI 2.0's behavior.
86-
71+
From v3.0.0 (Beta), SDWebImageSwiftUI drop iOS 13 support. To use on iOS 13, checkout the latest v2.x version (or using `2.x` branch) instead.
8772

8873
## Installation
8974

0 commit comments

Comments
 (0)