Question: Having canvas #54

Closed
opened 2025-04-15 02:53:27 +02:00 by jj11 · 7 comments
  • Firstly I really like this project, I was playing around to integrate webkit in Linux with Swift. Good learning step on wrapping C library and using it in swift
  • Now I don't know at the moment the api to use to show the UI from WebKit but wanna ask that it will give a reference pointer to some GtkWidget or something, so how could we map that using adwaita-swift?
- Firstly I really like this project, I was playing around to integrate webkit in Linux with Swift. Good learning step on wrapping C library and using it in swift - Now I don't know at the moment the api to use to show the UI from WebKit but wanna ask that it will give a reference pointer to some GtkWidget or something, so how could we map that using adwaita-swift?
Author
Just found the api: - https://webkitgtk.org/reference/webkitgtk/stable/overview.html
Author

The main widget is WebKitWebView, which can be added to any GTK container or window like a regular widget. WebKitWebView will then render the web page in the area allocated to it.

The main widget is WebKitWebView, which can be added to any GTK container or window like a regular widget. WebKitWebView will then render the web page in the area allocated to it.
Author

I don't know much of Gtk or libadwaita tbh so open to your suggestion as to how we can render and show the page

I don't know much of Gtk or libadwaita tbh so open to your suggestion as to how we can render and show the page
Owner

Hi! There is already an implementation of the WebKit WebView under https://git.aparoksha.dev/Zaph/AdwaitaWebViewSwift.

Hi! There is already an implementation of the WebKit WebView under https://git.aparoksha.dev/Zaph/AdwaitaWebViewSwift.
Author

@david-swift ohh that's amazing never knew about it... I will this then

Another question - simple app with hello world takes like 100MB is this normal??

@david-swift ohh that's amazing never knew about it... I will this then Another question - simple app with hello world takes like 100MB is this normal??
Owner

No, that's quite large. Memorize e.g. is ca. 50 MB with the static standard library.

No, that's quite large. Memorize e.g. is ca. 50 MB with the static standard library.
Author

No worries I will check that again, I will close this issue

No worries I will check that again, I will close this issue
jj11 closed this issue 2025-04-16 03:23:32 +02:00
Sign in to join this conversation.
No Milestone
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aparoksha/adwaita-swift#54
No description provided.