fix: Xcode dummy refactor rename namespace overflow issue

This commit is contained in:
CMK 2021-03-01 19:34:24 +08:00
parent 9251b55106
commit 94d1aae02c
2 changed files with 15 additions and 15 deletions

View File

@ -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
}

View File

@ -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