Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Oct 4, 2017
1 parent 1ca6b85 commit cb47a1a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Source/BottomView/BottomContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ open class BottomContainerView: UIView {
UIView.animate(withDuration: 0.3, animations: {
imageView.transform = CGAffineTransform(scaleX: 1.05, y: 1.05)
}, completion: { _ in
UIView.animate(withDuration: 0.2, animations: {
UIView.animate(withDuration: 0.2, animations: {
imageView.transform = CGAffineTransform.identity
})
})
Expand Down
7 changes: 3 additions & 4 deletions Source/CameraView/CameraMan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ class CameraMan {
func setupDevices() {
// Input
AVCaptureDevice
.devices().flatMap {
return $0 as? AVCaptureDevice
}.filter {
.devices()
.filter {
return $0.hasMediaType(AVMediaType.video)
}.forEach {
switch $0.position {
Expand Down Expand Up @@ -177,7 +176,7 @@ class CameraMan {
let request = PHAssetChangeRequest.creationRequestForAsset(from: image)
request.creationDate = Date()
request.location = location
}, completionHandler: { (ok,error) in
}, completionHandler: { (_, _) in
DispatchQueue.main.async {
completion?()
}
Expand Down
6 changes: 3 additions & 3 deletions Source/CameraView/CameraView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class CameraView: UIViewController, CLLocationManagerDelegate, CameraManDelegate
}

func setupPreviewLayer() {
let layer = AVCaptureVideoPreviewLayer(session: cameraMan.session)
let layer = AVCaptureVideoPreviewLayer(session: cameraMan.session)

layer.backgroundColor = configuration.mainColor.cgColor
layer.autoreverses = true
Expand Down Expand Up @@ -196,7 +196,7 @@ class CameraView: UIViewController, CLLocationManagerDelegate, CameraManDelegate
// MARK: - Camera actions

func rotateCamera() {
UIView.animate(withDuration: 0.3, animations: {
UIView.animate(withDuration: 0.3, animations: {
self.containerView.alpha = 1
}, completion: { _ in
self.cameraMan.switchCamera {
Expand Down Expand Up @@ -252,7 +252,7 @@ class CameraView: UIViewController, CLLocationManagerDelegate, CameraManDelegate
cameraMan.focus(convertedPoint)

focusImageView.center = point
UIView.animate(withDuration: 0.5, animations: {
UIView.animate(withDuration: 0.5, animations: {
self.focusImageView.alpha = 1
self.focusImageView.transform = CGAffineTransform(scaleX: 0.6, y: 0.6)
}, completion: { _ in
Expand Down
1 change: 1 addition & 0 deletions Source/ImageGallery/ImageGalleryLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class ImageGalleryLayout: UICollectionViewFlowLayout {

var newAttributes = [UICollectionViewLayoutAttributes]()
for attribute in attributes {
// swiftlint:disable force_cast
let n = attribute.copy() as! UICollectionViewLayoutAttributes
n.transform = Helper.rotationTransform()
newAttributes.append(n)
Expand Down
2 changes: 1 addition & 1 deletion Source/ImageGallery/ImageGalleryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ extension ImageGalleryView: UICollectionViewDelegate {
} else if self.imageLimit == 0 || self.imageLimit > self.selectedStack.assets.count {
cell.selectedImageView.image = AssetManager.getImage("selectedImageGallery")
cell.selectedImageView.transform = CGAffineTransform(scaleX: 0, y: 0)
UIView.animate(withDuration: 0.2, animations: {
UIView.animate(withDuration: 0.2, animations: {
cell.selectedImageView.transform = CGAffineTransform.identity
})
self.selectedStack.pushAsset(asset)
Expand Down

0 comments on commit cb47a1a

Please sign in to comment.