Type Property


The object posts the provided content to the Messages app.


static let message: UIActivity.ActivityType


When using this service, you can provide NSString and NSAttributedString objects as data for the activity items. You may also specify NSURL objects whose contents use the sms scheme.

If the device has MMS or FaceTime enabled, you can provide UIImage, and NSURL objects as data for the activity items.

To specify an NSData object, you must implement the UIActivityItemSource protocol, return the data object in activityViewController(_:itemForActivityType:), and return the data object’s UTI in activityViewController(_:dataTypeIdentifierForActivityType:).