File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Example/SDWebImageSwiftUIDemo Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ struct ContentView: View {
85
85
if self . animated {
86
86
#if os(macOS) || os(iOS) || os(tvOS)
87
87
AnimatedImage ( url: URL ( string: url) )
88
+ /**
89
+ .onViewUpdate { view, context in
90
+ view.toolTip = "Mouseover Tip"
91
+ }
92
+ */
88
93
. indicator ( SDWebImageActivityIndicator . medium)
89
94
/**
90
95
.placeholder(UIImage(systemName: "photo"))
Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ var body: some View {
133
133
// Bundle (not Asset Catalog)
134
134
AnimatedImage (name : " animation1" , isAnimating : $isAnimating)) // Animation control binding
135
135
.maxBufferSize (.max )
136
+ .onViewUpdate { view, context in // Advanced native view coordinate
137
+ view.toolTip = " Mouseover Tip"
138
+ }
136
139
}
137
140
}
138
141
```
You can’t perform that action at this time.
0 commit comments