Swiftpack.co - 0x0001SUI/ActivityView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by 0x0001SUI.
0x0001SUI/ActivityView v2.0.0
A popover view that you use to offer standard services from your app.
⭐️ 1
🕓 3 weeks ago
iOS
.package(url: "https://github.com/0x0001SUI/ActivityView.git", from: "v2.0.0")

ActivityView

A popover view that you use to offer standard services from your app.

import SwiftUI
import ActivityView

struct ContentView: View {
    @Environment(\.activityView) private var activityView
    
    @State private var isSharing = false
    
    var body: some View {
        Button {
            activityView([URL(string: "https://dmkskn.com")!], nil)
        } label: {
            Text("Share")
        }
    }
}

GitHub

link
Stars: 1
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics