Becky Hansmeyer

100% grass-fed Swift. Artisanal SwiftUI.

Menu
Skip to content
  • About Me
  • My Apps
  • Twitter
  • Micro.blog
Link

Adding a Native Share Button

Add sharing to your Swift app via UIActivityViewController

For anyone who wants to know how to add a share button to your Swift app (that opens the native share sheet), this article from Code Explorer is exactly what you need. Additionally, if you need to shorten some text so that it will fit in a tweet and also want to append an ellipses, this String extension is super handy!
May 9, 2015Becky H. swift

Post navigation

←
→
It me!
Buy me a coffeeBuy me a coffee

Recent Writings

  • I’m Making a Game
  • A Few Thoughts on the Eve of WWDC
  • Adding a Gradient to Large Title Text in SwiftUI or UIKit
  • What’s New in YarnBuddy
  • Wishes for WWDC 2021

Favorites

  • 512 Pixels
  • App Launch Map
  • Brent Simmons
  • Casey Liss
  • Curtis Herbert
  • Daniel Farrelly
  • Daring Fireball
  • David Smith
  • Erica Sadun
  • Guilherme Rambo
  • John Sundell
  • MacStories
  • Manton Reece
  • Marco Arment
  • Relay FM
  • Six Colors
  • Steven Aquino
© 2022 Becky Hansmeyer