Swiftpack.co -  shaps80/ActivityView as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A SwiftUI view that presents a UIActivityViewController correctly on all devices.
.package(url: "https://github.com/shaps80/ActivityView.git", from: "1.0.0")

ios tv watch mac


A SwiftUI view for presenting a UIActivityViewController correctly across all platforms.


struct ShareView: View {
    @State private var isPresented = false

    var body: some View {
        return Button("Share") { isPresented = true }
                isPresented: $isPresented,
                items: ["text"]


  • Familiar API – Similar to alert, sheet, etc...
  • Supports all platforms
  • Nested activity controllers
  • Popover on iPad, modal everywhere else


The library is provided as an open-source Swift package. So simply add the dependency to your package list:



Stars: 4
Last commit: 35 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

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