Skip to content

Commit cd45a18

Browse files
authored
<FIX>: Indexed number is incorrect when deselecting
Swapping the lines makes it work. So remove asset first and then unselect from assetsViewController
1 parent 464dc40 commit cd45a18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Controller/ImagePickerController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ import Photos
143143
}
144144

145145
public func deselect(asset: PHAsset) {
146-
assetsViewController.unselect(asset: asset)
147146
assetStore.remove(asset)
147+
assetsViewController.unselect(asset: asset)
148148
updatedDoneButton()
149149
}
150150

0 commit comments

Comments
 (0)