ShareMenuCustomItem
public struct ShareMenuCustomItem
The struct representing a share menu custom item.
-
Type of file format, from the allowed UTCoreTypes as a String. For eg. [String(kUTTypePDF), String(kUTTypeXML)]. For all file types use [String(kUTTypeItem)].
Declaration
Swift
public let types: [String]
-
Share menu label.
Declaration
Swift
public let label: String
-
Maximum file size allowed in kilobytes, default and maximum size is 25600KB or 25MB.
Declaration
Swift
public let maxSize: Int
-
Icon image asset name for the share menu, no icon is displayed by default.
Declaration
Swift
public let icon: String?
-
Declaration
Swift
public static let maxAttachmentSize: Int
-
Constructor used to create an instance of ShareMenuCustomItem.
Declaration
Swift
public init(types: [String], label: String, maxSize: Int = ShareMenuCustomItem.maxAttachmentSize, icon: String? = nil)