Previously for UIButton instances, you were able to pass in UIControlState.Normal for setTitle or setImage. .Norma
UIButton
UIControlState.Normal
setTitle
setImage
.Norma
Swift 5
Replace from
btn.setTitle("title", for: .Normal)
to
btn.setTitle("title", for: UIControl.State.normal)