InitialsImageView
InitialsImageView copied to clipboard
UIGraphicsGetCurrentContext is nil
This happens randomly. After a few scene changes, UIGraphicsGetCurrentContext returns nil.
Getting this as well.
This is probably because your frame is .zero when you're setting the image (if you're using AutoLayout). You can either set the frame manually, or layoutIfNeeded before you set the image.
Was facing the same issue
@SirensOfTitan thanks for the tip. This fixed my issue