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!
bhansmeyer@mastodon.social
Buy me a coffeeBuy me a coffee

Recent Writings

  • Dreaming
  • Rediscovery
  • The Friends We Made Along the Way
  • Reflections on WWDC 2022
  • What I’m Excited About/Hoping for at WWDC 2022

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
© 2025 Becky Hansmeyer