UI optimizations

This commit is contained in:
Ali 2023-02-07 23:23:06 +04:00
parent 5c71c08b6e
commit 5f3de7a40b
17 changed files with 158 additions and 74 deletions

View file

@ -43,7 +43,7 @@
}
}
_animation = rlottie::Animation::loadFromData(std::string(reinterpret_cast<const char *>(data.bytes), data.length), std::string([cacheKey UTF8String]), "", false, colorsVector, modifier);
_animation = rlottie::Animation::loadFromData(std::string(reinterpret_cast<const char *>(data.bytes), data.length), std::string([cacheKey UTF8String]), "", cacheKey.length != 0, colorsVector, modifier);
if (_animation == nullptr) {
return nil;
}

View file

@ -22,4 +22,8 @@
#define LOTTIE_IMAGE_MODULE_DISABLED
#endif
#ifndef LOTTIE_CACHE_SUPPORT
#define LOTTIE_CACHE_SUPPORT
#endif
#endif // CONFIG_H