enter image description here When I add UIIMage+Gif.swift file to my Objective C project to add GIF images in Swift files inside my Obj-C project I got "expected a type" error in generated swift header file.
+ (double)delayForImageAtIndex:(NSInteger)index source:(CGImageSourceRef _Null_unspecified)source;
+ (UIImage * _Nullable)animatedImageWithSource:(CGImageSourceRef _Nonnull)source;
Simple,
add new file by right clicking on left panel where all objective c file and add new file and name it uiimage+gif its working
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.