Compare commits
No commits in common. "f40a1c569ff5faa9052434bda15ae78d71195038" and "dd7af8c6e3ea21aafca2d7392213d072b037e51a" have entirely different histories.
f40a1c569f
...
dd7af8c6e3
@ -14,11 +14,6 @@ public struct WebView: AdwaitaWidget {
|
|||||||
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
public func container<Data>(data: WidgetData, type: Data.Type) -> ViewStorage where Data: ViewRenderData {
|
||||||
let storage = ViewStorage(webkit_web_view_new()?.opaque())
|
let storage = ViewStorage(webkit_web_view_new()?.opaque())
|
||||||
update(storage, data: data, updateProperties: true, type: type)
|
update(storage, data: data, updateProperties: true, type: type)
|
||||||
storage.notify(name: "uri") {
|
|
||||||
if let url = webkit_web_view_get_uri(storage.opaquePointer?.cast()) {
|
|
||||||
self.url = String(cString: url)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return storage
|
return storage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user