Use the sensors in your mobile devices to perform science experiments. Science doesn’t just happen in the classroom or lab—tools like Science Journal let you see how the world works with just your phone.
When adding a photo to an experiment note, a user was only allowed to select a single image at a time. This PR adds the ability to add multiple images at once.
Description
Adds a SelectionMode to PhotoLibraryViewController. When set to .multiple, it tracks the selection of multiple images at once. When set to .single, it only allows for a single image to be added to an experiment note at once (the previous behavior).
Changes the selection state of PhotoLibraryCells to use a purple checkmark, instead of a purple border.
Adds a SelectedImage struct to replace some of the tuples we were using. This makes it easier to track PHAssets across selection taps.
Checklist
Motivation and Context
When adding a photo to an experiment note, a user was only allowed to select a single image at a time. This PR adds the ability to add multiple images at once.
Description
SelectionMode
toPhotoLibraryViewController
. When set to.multiple
, it tracks the selection of multiple images at once. When set to.single
, it only allows for a single image to be added to an experiment note at once (the previous behavior).PhotoLibraryCell
s to use a purple checkmark, instead of a purple border.SelectedImage
struct to replace some of the tuples we were using. This makes it easier to trackPHAsset
s across selection taps.Video of multiple selection.