본문 바로가기

Swift

(3)
[Swift] Understanding Swift Performance - Class와 Protocol WWDC 2016 Understanding Swift Performance Understanding Swift Performance - WWDC 2016 - Videos - Apple Developer In this advanced session, find out how structs, classes, protocols, and generics are implemented in Swift. Learn about their relative... developer.apple.com 위 WWDC 자료를 보고 궁금한 점이 생겨, 알아본 내용입니다. 해당 WWDC의 주 내용은 Struct와 Protocl 그리고 Generic을 사용하여 Protocol 타입을 사용할 경우 Generic과 함께 사용하여 Existe..
[Swift] What's New in Swift (5.0/5.1) [ABI Stability] ABI란 Application Binary Interface, 응용 프로그램과 라이브러리 사이에 필요한 저수준 인터페이스에 대한 정의이다. 기계코드에 대한 통신 규칙을 정의하며, 프레임워크 또는 라이브러리들의 구성요소는 이 binary language를 사용하여 서로 통신한다. 프로그램을 나타내는 세부사항을 Run time에 기입하며, Run time에 컴파일된 코드가 상호작용할 수 있다. Keynote 1. ABI Stability를 지원함으로써 버전 호환이 된다. (Migration 과정이 개선될 것이다.) 2. 개발자는 Swift로 작성된 closed source 3rd-party libraries를 만들고, 이를 미리 컴파일된 framework로 배포할 수 있다. 이는..
[Swift 5.1] Property Wrapper 개념과 사용 예시, 그리고 한계점. Swift 5.1에 새로 도입된 Property Wrapper에 대해 정리하고자 합니다. https://nshipster.com/propertywrapper/#auditing-property-access Swift Property Wrappers Swift property wrappers go a long way to making SwiftUI possible, but they may play an even more important role in shaping the future of the language as a whole. nshipster.com 를 바탕으로 정리한 내용입니다. Property wrapper란? 반복적으로 나타나는 property 구현 패턴에 대한 집합을 컴파일러에 하드코딩하는 ..