PhotosUI Changes for Swift
PhotosUI
Added PHLivePhotoView
Added PHLivePhotoView.delegate
Added PHLivePhotoView.isMuted
Added PHLivePhotoViewDelegate
Modified PHContentEditingController
Declaration | |
---|---|
From | protocol PHContentEditingController : NSObjectProtocol { func canHandleAdjustmentData(_ adjustmentData: PHAdjustmentData!) -> Bool func startContentEditingWithInput(_ contentEditingInput: PHContentEditingInput!, placeholderImage placeholderImage: NSImage!) func finishContentEditingWithCompletionHandler(_ completionHandler: ((PHContentEditingOutput!) -> Void)!) func cancelContentEditing() var shouldShowCancelConfirmation: Bool { get } } |
To | protocol PHContentEditingController : NSObjectProtocol { func canHandle(_ adjustmentData: PHAdjustmentData) -> Bool func startContentEditing(with contentEditingInput: PHContentEditingInput, placeholderImage placeholderImage: NSImage) func finishContentEditing(completionHandler completionHandler: @escaping (PHContentEditingOutput?) -> Swift.Void) func cancelContentEditing() var shouldShowCancelConfirmation: Bool { get } } |
Declaration | |
---|---|
From | func canHandleAdjustmentData(_ adjustmentData: PHAdjustmentData!) -> Bool |
To | func canHandle(_ adjustmentData: PHAdjustmentData) -> Bool |
Declaration | |
---|---|
From | func finishContentEditingWithCompletionHandler(_ completionHandler: ((PHContentEditingOutput!) -> Void)!) |
To | func finishContentEditing(completionHandler completionHandler: @escaping (PHContentEditingOutput?) -> Swift.Void) |
Declaration | |
---|---|
From | func startContentEditingWithInput(_ contentEditingInput: PHContentEditingInput!, placeholderImage placeholderImage: NSImage!) |
To | func startContentEditing(with contentEditingInput: PHContentEditingInput, placeholderImage placeholderImage: NSImage) |