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 {
8585 if self . animated {
8686 #if os(macOS) || os(iOS) || os(tvOS)
8787 AnimatedImage ( url: URL ( string: url) )
88+ /**
89+ .onViewUpdate { view, context in
90+ view.toolTip = "Mouseover Tip"
91+ }
92+ */
8893 . indicator ( SDWebImageActivityIndicator . medium)
8994 /**
9095 .placeholder(UIImage(systemName: "photo"))
Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ var body: some View {
133133 // Bundle (not Asset Catalog)
134134 AnimatedImage (name : " animation1" , isAnimating : $isAnimating)) // Animation control binding
135135 .maxBufferSize (.max )
136+ .onViewUpdate { view, context in // Advanced native view coordinate
137+ view.toolTip = " Mouseover Tip"
138+ }
136139 }
137140}
138141```
You can’t perform that action at this time.
0 commit comments