AparokshaUI / adwaita-swift

A framework for creating user interfaces for GNOME with an API similar to SwiftUI
https://aparokshaui.github.io/adwaita-swift/
MIT License
749 stars 16 forks source link

WebKitGTK Support? #18

Closed tokyovigilante closed 2 months ago

tokyovigilante commented 2 months ago

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

It would be awesome if GTK WebKit views were supported, to enable embedded web content or even full web-browers in Swift.

Describe alternatives you've considered

Using the GTK or WPE WebKit APIs from Swift can be done, but there is some significant boilerplate required to generate windows and integrate with OpenGL etc in the case of WPE

Additional context

Thanks!

david-swift commented 2 months ago

WebKitGTK is a separate library, so I would not include it in the core package, but create a new package, similar to the one for GtkSourceView. Thanks for the suggestion , I‘ll definitely create this package at some point!

tokyovigilante commented 2 months ago

Awesome, thanks for pointing me to the GtkSourceView, package, I was able to just replace the references and get a GtkWebView up and running with adwaita-swift.