Structure
ADAssetSelectOptions
public struct ADAssetSelectOptions: OptionSet
Options to control the asset select condition and ui.
Relationships
Conforms To
OptionSet
Initializers
init(rawValue:)
public init(rawValue: Int)
Properties
rawValue
public let rawValue: Int
selectAsGif
public static let selectAsGif
Allow select Gif, it only controls whether it is displayed in Gif form.
selectAsLivePhoto
public static let selectAsLivePhoto
Allow select LivePhoto, it only controls whether it is displayed in LivePhoto form.
autoScroll
public static let autoScroll
If slideSelect
contain, Will auto scroll to top or bottom when your finger at the top or bottom.
captureOnTakeAsset
public static let captureOnTakeAsset
Show the image captured by the camera is displayed on the camera button inside the album.
allowAddAsset
@available(iOS 14, *)
public static let allowAddAsset
If user choose limited Photo mode, a button with '+' will be added. It will call PHPhotoLibrary.shared().presentLimitedLibraryPicker(from:) to add photo.
allowAuthTips
@available(iOS 14, *)
public static let allowAuthTips
iOS14 limited Photo mode, will show collection footer view in ADThumbnailViewController. Will go to system setting if clicked.
allowBrowser
public static let allowBrowser
Allow access to the browse large image interface (That is, whether to allow access to the large image interface after clicking the thumbnail image).
`default`
public static let `default`: ADAssetSelectOptions = [.mixSelect,.slideSelect,.autoScroll,.allowTakePhotoAsset,.thumbnailToolBar,.allowBrowser]
Default options.
exclusive
public static let exclusive: ADAssetSelectOptions = [.slideSelect,.autoScroll,.allowTakePhotoAsset,.thumbnailToolBar,.allowBrowser]
Options do not allow mix select.