Reason for warning when working with Lottie Swift 5. How can this be solved? enter image description here

    1 answer 1

    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 
    • one
      Thank! 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