Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
Hoye Lam
hoyelam
Twitter:
@hoyelam
IG:
@hoyelam
11
followers
·
18
following
@DeepLcom
Netherlands
12:06
(UTC +02:00)
www.hoyelam.com
Twitter
@hoyelam
View GitHub Profile
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
All gists
1
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
1 file
1 fork
0 comments
5 stars
hoyelam
/
share_sheet_swiftui_example.swift
Created
January 26, 2021 19:07
Share Sheet UIActivityViewController within SwiftUI
View
share_sheet_swiftui_example.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Text("Hello, world!")
.padding()
.shareSheet(items: ["Hello world!"])
Text("Hello, world!")
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.