+ (UIColor*) getColorWithHexa(NSString*)hexString;
This is a method definition in my class. It's causing a warning. What is cause of similar warnings and how can these be resolved?
I am returning an UIColor object, while that question relates to blocks, which is given in comments.
So, it's helpful.

+ (UIColor * _Nullable) getColorWithHexa(NSString * _Nonnull)hexString;, but you can fit your class's entire interface between theNS_ASSUME_NONNULL_BEGINandNS_ASSUME_NONNULL_ENDdirectives as well, which defines_Nonnullfor every object automatically.