简体   繁体   中英

Expected a type error in 'myproj'-Bridging-Header.swift

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM