How to silence a warning in swift

前端 未结 4 1283
一整个雨季
一整个雨季 2020-12-04 07:04

I have a piece of code which is generating lots of warnings (deprecated API)

Using clang* I could do

#pragma clang diagnostic push
#pragma clang dia         


        
4条回答
  •  鱼传尺愫
    2020-12-04 07:51

    As of 2020, Xcode 12.0, the consensus is that there is no way to achieve that.

    I'll update/edit this answer if Apple add the feature.

    Put it in your wish list for WWDC 2021 !

提交回复
热议问题