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
🕓 1 year 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")
        }
    }
}

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