본문 바로가기

전체 글

(30)
[iOS] Ruby on Rails를 활용하여, 사용하지 않는 이미지 리소스 제거 프로젝트를 진행하며, 사용하지 않는 이미지 리소스들이 점차 쌓이게 되었고, 저장된 이미지 리소스만 67MB가 되었습니다.. 새로운 이미지를 추가할 때마다, 한숨이 늘어가는 것을 보며 사용하지 않는 것들을 지울 수 없을까?라는 생각을 가지게 되었습니다. 저와 비슷한 생각을 가진 사람들이 있지 않을까 해서, 검색을 해봤지만 SwiftGen을 사용하여 camel case로 변환된 것 까지 검출하는 방법은 찾을 수 없었습니다.. 따라서, 저희에게 맞도록 스크립트를 작성하는 것을 목표로 시작했습니다. (Ruby on Rails를 이용하여 스크립트를 작성했습니다.) 안쓰는 이미지 리소스들을 찾는 과정을 간단하게 설명하면 다음과 같습니다. 1. Asset 폴더에 저장되어 있는 모든 이미지 리소스 리스트를 받아온다. ..
[UIKit] Generic Cell Configurator 2020/03/16 - [UIKit] - [UIKit] UITableView의 indexPathForRow(at:) 오차에 대한 디버깅 [UIKit] UITableView의 indexPathForRow(at:) 오차에 대한 디버깅 최근 여러 가지의 Cell을 Generic을 활용하여 구성하는 방식을 사용하며 발생했던 문제에 대해 다루고자 합니다. https://medium.com/chili-labs/configuring-multiple-cells-with-generics-in-swift-dcd5e209ba16.. ntomios.tistory.com 위 글에서 언급했던, Generic Cell Configurator에 대해 다루고자 합니다. 중복되는 내용이 포함되어 있습니다. iOS 개발자라면 UITabl..
[UIKit] UITableView의 indexPathForRow(at:) 오차에 대한 디버깅 최근 여러 가지의 Cell을 Generic을 활용하여 구성하는 방식을 사용하며 발생했던 문제에 대해 다루고자 합니다. https://medium.com/chili-labs/configuring-multiple-cells-with-generics-in-swift-dcd5e209ba16Configuring multiple cells with generics in SwiftiOS Developers spend most of their development time dealing with UITableView and UICollectionView. It’s quite straightforward when you need…medium.com현재 저희는 위 글을 참고, 커스텀하여 활용하고 있습니다.다음에 커스텀한 ..
[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 구현 패턴에 대한 집합을 컴파일러에 하드코딩하는 ..