From 94d1aae02c50bdbec2edcb1312d46008fac0e483 Mon Sep 17 00:00:00 2001 From: CMK Date: Mon, 1 Mar 2021 19:34:24 +0800 Subject: [PATCH] fix: Xcode dummy refactor rename namespace overflow issue --- .../Container/MosaicImageViewContainer.swift | 26 +++++++++---------- .../Scene/Share/View/Content/StatusView.swift | 4 +-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Mastodon/Scene/Share/View/Container/MosaicImageViewContainer.swift b/Mastodon/Scene/Share/View/Container/MosaicImageViewContainer.swift index 71984800b..5240d4e2c 100644 --- a/Mastodon/Scene/Share/View/Container/MosaicImageViewContainer.swift +++ b/Mastodon/Scene/Share/View/Container/MosaicImageViewContainer.swift @@ -287,11 +287,11 @@ struct MosaicImageView_Previews: PreviewProvider { UIViewPreview(width: 375) { let view = MosaicImageViewContainer() let image = images[3] - let artworkImageView = view.setupImageView( + let imageView = view.setupImageView( aspectRatio: image.size, maxSize: CGSize(width: 375, height: 400) ) - artworkImageView.image = image + imageView.image = image return view } .previewLayout(.fixed(width: 375, height: 400)) @@ -299,14 +299,14 @@ struct MosaicImageView_Previews: PreviewProvider { UIViewPreview(width: 375) { let view = MosaicImageViewContainer() let image = images[1] - let artworkImageView = view.setupImageView( + let imageView = view.setupImageView( aspectRatio: image.size, maxSize: CGSize(width: 375, height: 400) ) - artworkImageView.layer.masksToBounds = true - artworkImageView.layer.cornerRadius = 8 - artworkImageView.contentMode = .scaleAspectFill - artworkImageView.image = image + imageView.layer.masksToBounds = true + imageView.layer.cornerRadius = 8 + imageView.contentMode = .scaleAspectFill + imageView.image = image return view } .previewLayout(.fixed(width: 375, height: 400)) @@ -315,8 +315,8 @@ struct MosaicImageView_Previews: PreviewProvider { let view = MosaicImageViewContainer() let images = self.images.prefix(2) let imageViews = view.setupImageViews(count: images.count, maxHeight: 162) - for (i, artworkImageView) in imageViews.enumerated() { - artworkImageView.image = images[i] + for (i, imageView) in imageViews.enumerated() { + imageView.image = images[i] } return view } @@ -326,8 +326,8 @@ struct MosaicImageView_Previews: PreviewProvider { let view = MosaicImageViewContainer() let images = self.images.prefix(3) let imageViews = view.setupImageViews(count: images.count, maxHeight: 162) - for (i, artworkImageView) in imageViews.enumerated() { - artworkImageView.image = images[i] + for (i, imageView) in imageViews.enumerated() { + imageView.image = images[i] } return view } @@ -337,8 +337,8 @@ struct MosaicImageView_Previews: PreviewProvider { let view = MosaicImageViewContainer() let images = self.images.prefix(4) let imageViews = view.setupImageViews(count: images.count, maxHeight: 162) - for (i, artworkImageView) in imageViews.enumerated() { - artworkImageView.image = images[i] + for (i, imageView) in imageViews.enumerated() { + imageView.image = images[i] } return view } diff --git a/Mastodon/Scene/Share/View/Content/StatusView.swift b/Mastodon/Scene/Share/View/Content/StatusView.swift index 46a416fd0..be754ed86 100644 --- a/Mastodon/Scene/Share/View/Content/StatusView.swift +++ b/Mastodon/Scene/Share/View/Content/StatusView.swift @@ -358,8 +358,8 @@ struct StatusView_Previews: PreviewProvider { statusView.updateContentWarningDisplay(isHidden: false) let images = MosaicImageView_Previews.images let imageViews = statusView.statusMosaicImageView.setupImageViews(count: 4, maxHeight: 162) - for (i, artworkImageView) in imageViews.enumerated() { - artworkImageView.image = images[i] + for (i, imageView) in imageViews.enumerated() { + imageView.image = images[i] } statusView.statusMosaicImageView.isHidden = false return statusView