From ce950d91641f85225f6e2727a50dd8069721033f Mon Sep 17 00:00:00 2001 From: Zaphik <142690769+Zaphik@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:06:03 +0100 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f39198..6862dbe 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,20 @@ Install `webkitgtk6.0-dev` or similar (based on the package manager) as well as ## Usage -Take a look at the simple [sample app](Tests/main.swift). +```swift +struct Counter: View { + + @State private var url: String = "https://github.com/Zaphik/AdwaitaWebViewSwift" + + var view: Body { + WebView(url: $url) + .setSize(width: 800, height: 600) + } + +} +``` + +Take a look at the simple [sample app](Tests/program.swift). Check out the [Adwaita](https://github.com/AparokshaUI/Adwaita) packages. ## Thanks