Search code examples
iosxcodeswift3compiler-warnings

warning: expression implicitly coerced from 'String?' to Any


I am getting a couple compiler warnings after running my app, but does not indicate exactly where these warnings appear in my code (at least I am not able to find it). See attached screenshot of where I am receiving these warnings. Thank you in Advance! enter image description here


Solution

  • This warning occurs when you print an optional. The compiler suggests three options to silence the warning. Use the most appropriate one. The warning is harmless.