• Stars
    star
    312
  • Rank 134,133 (Top 3 %)
  • Language
    Objective-C
  • License
    Other
  • Created almost 12 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A UIActivity subclass that opens URLs in Safari

TUSafariActivity

Version License Platform

TUSafariActivity is a UIActivity subclass that provides an "Open In Safari" action to a UIActivityViewController.

TUSafariActivity screenshot

Installation

Swift Package Manager

TUSafariActivity is available through Swift Package Manager. To install it, simply add the following line to your Package.swift:

dependencies: [.package(url: "https://github.com/davbeck/TUSafariActivity.git", from: "1.0.0")]

CocoaPods

TUSafariActivity is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TUSafariActivity', '~> 1.0'

Usage

(See example Xcode project)

Simply alloc/init an instance of TUSafariActivity and pass that object into the applicationActivities array when creating a UIActivityViewController.

Objective-C

NSURL *URL = [NSURL URLWithString:@"http://google.com"];
TUSafariActivity *activity = [[TUSafariActivity alloc] init];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[URL] applicationActivities:@[activity]];

Swift

let URL = NSURL(string: "http://google.com")!
let activity = TUSafariActivity()
let activityViewController = UIActivityViewController(activityItems: [URL], applicationActivities: [activity])

Note that you can include the activity in any UIActivityViewController and it will only be shown to the user if there is a URL in the activity items.

More Repositories

1

TURecipientBar

A UIView to handle entering recipients similar to iOS Mail
Objective-C
339
star
2

CacheKit

Simple and flexible caching mechanism for in memory and persistent caches.
Objective-C
191
star
3

iPhone-Simulator-Capture

Records video screen captures of the iPhone simulator
Objective-C
120
star
4

ImageIOSwift

Swift wrapper around ImageIO
Swift
111
star
5

swift-glob

A native Swift implementation of glob match patterns.
Swift
45
star
6

MultipartForm

The missing multipart form support for URLSession.
Swift
44
star
7

PG.swift

A PostgreSQL client library written in pure Swift (without any dependency the C libpq).
Objective-C
42
star
8

graphile-scheduler

Job scheduling for PostgreSQL running on Node.js built on top of graphile-worker. It’s like cron, but reliable and distributed.
TypeScript
39
star
9

TULayoutAdditions

Shortcuts and helper methods for iOS Auto Layout
Objective-C
26
star
10

TNKImagePickerController

A replacement for UIImagePickerController that can select multiple photos.
Objective-C
24
star
11

TNKRefreshControl

A replacement for UIRefreshControl with a more modern look and more flexibility
Objective-C
20
star
12

SimpleInstapaperKit

An iOS interface for the Instapaper Simple API (http://www.instapaper.com/api/simple)
Objective-C
11
star
13

RefreshTintFail

UIRefreshControl tintColor is not applied on initial refresh
Objective-C
9
star
14

plaza-ios

An iOS App to view public topics, events, needs, prayers and albums from On The City Plaza.
Objective-C
8
star
15

TULogging

Better logging that uses ASL log levels. Based on work by Mike Weller.
Objective-C
7
star
16

PersistentCacheKit

A Swift package for caching items to the filesystem (using SQLite by default).
Swift
7
star
17

UntitledTerminalApp

Swift
6
star
18

DBF-Reader

A simple dbf editor for Mac.
C
5
star
19

version_bot

A simple service to keep track of build numbers.
Ruby
3
star
20

iphone-icon-tester

Preview your iPhone icons natively.
PHP
2
star
21

TNKFoundation

A collection of small utilities in Swift.
Swift
2
star
22

AsyncKit

Swift
2
star
23

GoogleVoiceBrowser

A simple dedicated browser window for Google Voice
Objective-C
2
star
24

LoginExample

An example of how to create a login flow for iOS. See https://www.davidbeck.co/blog/2018/08/03/login-app-flow.html.html
Swift
2
star
25

RoutesExample

Example app of how to use url based navigation for an iOS app. For more information see https://www.davidbeck.co/blog/2018/08/17/route-base-navigation.html.html
Swift
2
star
26

TNKData

A replacement for Core Data with a focus on control, performance and concurrency
Objective-C
1
star
27

CacheExample

Example code to demonstrate a bug in NSURLCache
Objective-C
1
star
28

davbeck.github.io

Static site for davidbeck.co
SCSS
1
star
29

VectorIO

Swift
1
star
30

deploy_hook

Automatically run a deploy script when changes are pushed to Github.
JavaScript
1
star
31

aws-lambda-swift-hook

A Swift module to facilitate running Swift on Lambda using a node bootstrap.
Swift
1
star
32

GIFFun

A sample project demonstrating how to support animated GIFs.
Swift
1
star
33

versionbotclient

Go
1
star
34

sawdust.fun

SCSS
1
star
35

monkey_proxy

A proxy server that records and replays http requests.
JavaScript
1
star
36

xcassetsenum

Convert an Xcode xcassets catalog file into a Swift enum for type safe compiler checked image assets.
Go
1
star
37

radars

Various bug reports sent to Apple with sample code
1
star
38

SwiftRecord

Object-relational mapping in Swift
Swift
1
star
39

TUMessagePackSerialization

MessagePack serializer for Objective-C and Swift
Objective-C
1
star
40

chipins

A Wordpress plugin that adds a short code to show giving progress.
PHP
1
star
41

cdmodeltoswift

Custom Swift codegen for Core Data models.
Swift
1
star
42

SyphonToHLS

A simple app that converts Syphon streams to HLS
Objective-C
1
star