Skip to content

Commit

Permalink
Use for each
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Aug 1, 2016
1 parent fdbe280 commit 8dd4ff4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source/ImagePickerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,11 @@ extension ImagePickerController: CameraViewDelegate {
let rotate = Helper.rotationTransform()

UIView.animateWithDuration(0.25) {
self.topView.rotateCamera.transform = rotate
self.bottomContainer.pickerButton.transform = rotate
self.bottomContainer.stackView.transform = rotate
self.bottomContainer.doneButton.transform = rotate
[self.topView.rotateCamera, self.bottomContainer.pickerButton,
self.bottomContainer.stackView, self.bottomContainer.doneButton].forEach {
$0.transform = rotate
}

self.galleryView.collectionViewLayout.invalidateLayout()

let translate: CGAffineTransform
Expand Down

0 comments on commit 8dd4ff4

Please sign in to comment.