Swift 3 warning: Non-optional expression of type 'String' used in a check for optionals

前端 未结 2 1397
一个人的身影
一个人的身影 2021-01-11 16:14

I\'m updating a project to Swift 3 and came across the following warning which I can\'t seem to resolve.

fileprivate var filteredTitlesList: [String] = []

i         


        
2条回答
  •  隐瞒了意图╮
    2021-01-11 16:42

    Other possibility of this warning is when you're trying to put a statement eg:let keyboardFrame: CGRect = keyboardFrameValue.cgRectValue in conditional statement like if or guard

提交回复
热议问题