gemenon

[ACTIVE] The Safari of the Gemini ecosystem
git clone git://git.figbert.com/gemenon.git
Log | Files | Refs

commit ae75fdc68bc1d151c093d2e1cc2743044486417b
parent b8039db3f0a6a268bd3b2e7c59f50bb014f5b174
Author: FIGBERT <figbert@figbert.com>
Date:   Mon, 17 Oct 2022 12:50:45 -0700

Add ShareLink for current URL

Diffstat:
MShared/ContentView.swift | 7+++++++
Mtodo | 2+-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Shared/ContentView.swift b/Shared/ContentView.swift @@ -74,6 +74,13 @@ struct ContentView: View { } .disabled(data.tab.next == nil) } + ToolbarItem(placement: .secondaryAction) { + if data.tab.url != nil { + ShareLink(item: data.tab.url!) + } else { + ShareLink(item: "").disabled(true) + } + } } .handlesExternalEvents(preferring: ["gemini://*"], allowing: ["*"]) .onOpenURL(perform: { url in diff --git a/todo b/todo @@ -3,7 +3,7 @@ [ ] ANSI in preformatted blocks [ ] bookmarks/favorites [X] reload page -[ ] share menu (link?) +[X] share menu (link?) [ ] better home/startpage [ ] settings/preferences [ ] print