プログラミングスクール最大70%OFF! ←クリックして見に行く

【Warning】Swift Compiler Warning:Forced cast of ‘String’ to same type has no effect

【Warning】Swift Compiler Warning:Forced cast of ‘String’ to same type has no effect

エラー解消方法の備忘録_φ(・_・ )

発生したエラー

Forced cast of ‘String’ to same type has no effect

翻訳

‘String’を同じタイプに強制キャストしても効果はありません

原因

同じタイプに強制キャストしても無駄なので該当の箇所を削除する

解決手順

FixボタンをクリックすればOK!

参考サイト

https://stackoverflow.com/questions/24223605/treating-a-forced-downcast-as-optional-will-never-produce-nil

Swiftカテゴリの最新記事