i know this might be too late but i had the same issue and just solved it. xcode -> editor -> canvas -> uncheck automatically refresh canvas