From 6e3de94e992af73039103daa6b8e07de75e09157 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 26 Mar 2018 15:36:55 -0400 Subject: [PATCH] code cleanup // FREEBIE --- .../src/ViewControllers/MediaGalleryViewController.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Signal/src/ViewControllers/MediaGalleryViewController.swift b/Signal/src/ViewControllers/MediaGalleryViewController.swift index e1d715436..db42fb54a 100644 --- a/Signal/src/ViewControllers/MediaGalleryViewController.swift +++ b/Signal/src/ViewControllers/MediaGalleryViewController.swift @@ -467,7 +467,7 @@ class MediaGalleryViewController: UINavigationController, MediaGalleryDataSource if isAnimated { UIView.animate(withDuration: changedItems ? 0.25 : 0.18, delay: 0.0, - options:.curveEaseOut, + options: .curveEaseOut, animations: { // Move back over it's original location self.presentationView.superview?.layoutIfNeeded() @@ -535,8 +535,8 @@ class MediaGalleryViewController: UINavigationController, MediaGalleryDataSource self.presentationViewConstraints += self.presentationView.autoSetDimensions(to: convertedRect.size) self.presentationViewConstraints += [ - self.presentationView.autoPinEdge(toSuperviewEdge: .top, withInset:convertedRect.origin.y), - self.presentationView.autoPinEdge(toSuperviewEdge: .left, withInset:convertedRect.origin.x) + self.presentationView.autoPinEdge(toSuperviewEdge: .top, withInset: convertedRect.origin.y), + self.presentationView.autoPinEdge(toSuperviewEdge: .left, withInset: convertedRect.origin.x) ] } @@ -741,7 +741,7 @@ class MediaGalleryViewController: UINavigationController, MediaGalleryDataSource func delete(items: [MediaGalleryItem]) { AssertIsOnMainThread() - Logger.info("\(logTag) in \(#function) with items: \(items)") + Logger.info("\(logTag) in \(#function) with items: \(items.map { ($0.attachmentStream, $0.message.timestamp) })") dataSourceDelegate?.mediaGalleryDataSource(self, willDelete: items)