Index

RBSharingService.swift

Classes


RBSharingService

A social sharing service. This is an abstract class.

Properties

The Email social sharing service.
@returns The service object.
static public let email RBSharingService { get set }

The Twitter social sharing service.
@returns The service object.
static public let twitter RBSharingService { get set }

The Facebook social sharing service.
@returns The service object.
static public let facebook RBSharingService { get set }

Functions

Open the relevant sharing compose UI with the given initial text.
@param text : The initial text to place in the compose UI.
@param completion : An optional block to be called when the compose UI is concluded.
@returns Whether or not compose was available and opened.
public func compose(withText text: String, completion: ((_ cancelled: Bool) -> Void)? = nil) throws -> Bool