Reason for warning when working with Lottie Swift 5. How can this be solved? 
1 answer
If everything works for you and you are not going to become a contributor to this project - do not touch.
If you still want to make a correction to the library itself, add the case default (and its processing) to the switch statement. The warning says that case may not cover all possible contents of the contentMode variable.
To hide warnings in used Pod libraries:
Add to your Podfile:
platform :ios # ΠΠ»Ρ ΠΎΡΠΊΠ»ΡΡΠ΅Π½ΠΈΡ Π²ΡΠ΅Ρ
ΠΏΡΠ΅Π΄ΡΠΏΡΠ΅ΠΆΠ΄Π΅Π½ΠΈΠΉ ΠΈΠ· Pod: inhibit_all_warnings! # ΠΠ»Ρ ΠΎΡΠΊΠ»ΡΡΠ΅Π½ΠΈΡ ΠΏΡΠ΅Π΄ΡΠΏΡΠ΅ΠΆΠ΄Π΅Π½ΠΈΠΉ Π² ΠΊΠΎΠ½ΠΊΡΠ΅ΡΠ½ΠΎΠΉ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠΈ: pod 'FBSDKCoreKit', :inhibit_warnings => true Then do:
pod install - oneThank! Yes, it works) It's just unpleasant when the warning is lit) - Andrey Velin
- @AndreyVelin Yes, I understand, I myself am like that. I updated the answer, if you use CocoaPods, you can hide warnings. - Ivan Kramarchuk
- Vanya, good night! Please help me if you know the answer: ru.stackoverflow.com/questions/969345/β¦ - Andrey Velin
- @AndreyVelin please tick the question as answered if the problem is resolved. - Ivan Kramarchuk
|