I recently was having an issue when creating a Gif where if it got too big colors went missing. However thanks to help from SO someone was able to help me find a work around and
This is a bug in iOS 11.0 and 11.1. Apple has fixed this in iOS 11.2+