We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ce20b commit 1582e80Copy full SHA for 1582e80
Example/SDWebImageSwiftUIDemo/ContentView.swift
@@ -91,11 +91,11 @@ struct ContentView: View {
91
if self.animated {
92
#if os(macOS) || os(iOS) || os(tvOS)
93
AnimatedImage(url: URL(string:url))
94
- /**
95
- .onViewUpdate { view, context in
96
- view.toolTip = "Mouseover Tip"
97
- }
98
- */
+ .onViewUpdate { view, context in
+ #if os(macOS)
+ view.toolTip = url
+ #endif
+ }
99
.indicator(SDWebImageActivityIndicator.medium)
100
/**
101
.placeholder(UIImage(systemName: "photo"))
0 commit comments