You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-21Lines changed: 6 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,11 @@ The framework provide the different View structs, which API match the SwiftUI fr
20
20
21
21
## Apple VisionOS
22
22
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.
24
24
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.
26
26
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)
28
28
29
29
## Features
30
30
@@ -58,32 +58,17 @@ All issue reports, feature requests, contributions, and GitHub stars are welcome
58
58
59
59
## Requirements
60
60
61
-
+ Xcode 12+
61
+
+ Xcode 14+
62
62
+ iOS 14+
63
63
+ macOS 11+
64
64
+ tvOS 14+
65
65
+ watchOS 7+
66
66
67
-
## SwiftUI 2.0 Compatibility
67
+
## for SwiftUI 1.0 (iOS 13)
68
68
69
69
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.
70
70
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.
0 commit comments