Swift 4 리팩토링을 진행하며

기록

  • 함수가 Void argument를 가지는 경우 이전에는 아무것도 넘기지 않아도 됐으나 이제부터는 ()로 Void값을 넘겨야 합니다.
  • #selector에서 사용하는 메소드는 무조건 @objc annotation을 사용해야 합니다.
  • NSAttributedString의 attribute 타입이 String에서 NSAttributedStringKey로 변경.
  • UIFontWeight가 UIFont.Weight struct로 변경.
  • UILayoutPriority가 struct로 변경.
  • NSError의 userInfo 프로퍼티가 [AnyHashable: Any] 에서 [String: Any] 로 변경.