Chatto icon indicating copy to clipboard operation
Chatto copied to clipboard

Chat photo images are blank in build with Xcode 12 on iOS 14

Open 101airborne opened this issue 4 years ago • 0 comments

Chat photo images are invisible in chat channel when App is built with any version of Xcode 12 and running in any version of iOS 14. App built with Xcode 11.7 and running in any version of iOS 14 does not exhibit bug.

Chatto/ChattoAdditions version 3.5.0 installed with CocoaPods.

Apparently with Xcode < 12 and iOS < 14 deriving a mask from a layer was okay, but with Xcode 12 and iOS 14 the effect is to make the image invisible.

Resolved by modifying in PhotoBubbleView.swift updateImages(): // self.imageView.layer.mask = UIImageView(image: self.photoMessageStyle.maskingImage(viewModel: self.photoMessageViewModel)).layer self.imageView.layer.mask = UIImageView(image: self.photoMessageStyle.maskingImage(viewModel: self.photoMessageViewModel)).layer.mask

I believe this is fixed in Chatto/ChattoAdditions 4.0.0 since the above line derives the mask differently than in 3.5.0.

101airborne avatar Feb 04 '21 23:02 101airborne