Skip to content

Instantly share code, notes, and snippets.

View hoyelam's full-sized avatar

Hoye Lam hoyelam

View GitHub Profile
@hoyelam
hoyelam / share_sheet_swiftui_example.swift
Created January 26, 2021 19:07
Share Sheet UIActivityViewController within SwiftUI
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Text("Hello, world!")
.padding()
.shareSheet(items: ["Hello world!"])
Text("Hello, world!")