mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
WIP: mini share extension view
This commit is contained in:
parent
5c00c0cf68
commit
b9df65baad
1 changed files with 30 additions and 0 deletions
|
|
@ -0,0 +1,30 @@
|
|||
//
|
||||
// MiniShareExtensionView.swift
|
||||
//
|
||||
//
|
||||
// Created by Jackson Harper on 11/6/23.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
struct MiniShareExtensionView: View {
|
||||
let extensionContext: NSExtensionContext?
|
||||
|
||||
@State var showToast = true
|
||||
|
||||
var body: some View {
|
||||
ProgressView()
|
||||
.popup(isPresented: $showToast) {
|
||||
Text("Saving to Omnivore")
|
||||
.padding(20)
|
||||
} customize: {
|
||||
$0
|
||||
.type(.toast)
|
||||
.position(.bottom)
|
||||
.animation(.spring())
|
||||
.closeOnTapOutside(true)
|
||||
.backgroundColor(.black.opacity(0.5))
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue