Skip to content

Commit cb47a1a

Browse files
committed
Remove trailing whitespace
1 parent 1ca6b85 commit cb47a1a

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

Source/BottomView/BottomContainerView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ open class BottomContainerView: UIView {
110110
UIView.animate(withDuration: 0.3, animations: {
111111
imageView.transform = CGAffineTransform(scaleX: 1.05, y: 1.05)
112112
}, completion: { _ in
113-
UIView.animate(withDuration: 0.2, animations: {
113+
UIView.animate(withDuration: 0.2, animations: {
114114
imageView.transform = CGAffineTransform.identity
115115
})
116116
})

Source/CameraView/CameraMan.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ class CameraMan {
3333
func setupDevices() {
3434
// Input
3535
AVCaptureDevice
36-
.devices().flatMap {
37-
return $0 as? AVCaptureDevice
38-
}.filter {
36+
.devices()
37+
.filter {
3938
return $0.hasMediaType(AVMediaType.video)
4039
}.forEach {
4140
switch $0.position {
@@ -177,7 +176,7 @@ class CameraMan {
177176
let request = PHAssetChangeRequest.creationRequestForAsset(from: image)
178177
request.creationDate = Date()
179178
request.location = location
180-
}, completionHandler: { (ok,error) in
179+
}, completionHandler: { (_, _) in
181180
DispatchQueue.main.async {
182181
completion?()
183182
}

Source/CameraView/CameraView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class CameraView: UIViewController, CLLocationManagerDelegate, CameraManDelegate
152152
}
153153

154154
func setupPreviewLayer() {
155-
let layer = AVCaptureVideoPreviewLayer(session: cameraMan.session)
155+
let layer = AVCaptureVideoPreviewLayer(session: cameraMan.session)
156156

157157
layer.backgroundColor = configuration.mainColor.cgColor
158158
layer.autoreverses = true
@@ -196,7 +196,7 @@ class CameraView: UIViewController, CLLocationManagerDelegate, CameraManDelegate
196196
// MARK: - Camera actions
197197

198198
func rotateCamera() {
199-
UIView.animate(withDuration: 0.3, animations: {
199+
UIView.animate(withDuration: 0.3, animations: {
200200
self.containerView.alpha = 1
201201
}, completion: { _ in
202202
self.cameraMan.switchCamera {
@@ -252,7 +252,7 @@ class CameraView: UIViewController, CLLocationManagerDelegate, CameraManDelegate
252252
cameraMan.focus(convertedPoint)
253253

254254
focusImageView.center = point
255-
UIView.animate(withDuration: 0.5, animations: {
255+
UIView.animate(withDuration: 0.5, animations: {
256256
self.focusImageView.alpha = 1
257257
self.focusImageView.transform = CGAffineTransform(scaleX: 0.6, y: 0.6)
258258
}, completion: { _ in

Source/ImageGallery/ImageGalleryLayout.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class ImageGalleryLayout: UICollectionViewFlowLayout {
99

1010
var newAttributes = [UICollectionViewLayoutAttributes]()
1111
for attribute in attributes {
12+
// swiftlint:disable force_cast
1213
let n = attribute.copy() as! UICollectionViewLayoutAttributes
1314
n.transform = Helper.rotationTransform()
1415
newAttributes.append(n)

Source/ImageGallery/ImageGalleryView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ extension ImageGalleryView: UICollectionViewDelegate {
244244
} else if self.imageLimit == 0 || self.imageLimit > self.selectedStack.assets.count {
245245
cell.selectedImageView.image = AssetManager.getImage("selectedImageGallery")
246246
cell.selectedImageView.transform = CGAffineTransform(scaleX: 0, y: 0)
247-
UIView.animate(withDuration: 0.2, animations: {
247+
UIView.animate(withDuration: 0.2, animations: {
248248
cell.selectedImageView.transform = CGAffineTransform.identity
249249
})
250250
self.selectedStack.pushAsset(asset)

0 commit comments

Comments
 (0)