본문 바로가기

전체 글533

[iOS Issue] Undefined Symbol error Xcode build fails with Undefined symbols for architecture arm64: I got the following warning on Github CI when trying to build an iOS archive: ld: warning: ignoring file ios/myframework.xcframework/ios-arm64/myframework.framework/myframework, building for iOS-ar... stackoverflow.com Undefined Symbol error pod으로 받은 특정 프레임워크가 없다면서 빌드 시 build log에 아래와 같은 에러로그가 찍힘 Undefined symbols for architecture .. 2022. 6. 20.
[Swift] 프로토콜 지향 프로그래밍 (Protocol Oriented Program) 프로토콜 지향 프로그래밍 스위프트는 프로토콜 지향 언어(Protocol-Oriented Language)이다. 스위프트는 대부분 구조체로 기본 타입이 구현되어있다. String, Int, Float, Date, URL 등등 익히 사용하고 있는 데이터 타입은 모두 구조체 velog.io 기존 OOP의 단점 Super Class에 의존적이라 subclass는 superclass의 필요하지 않은 변수, 함수를 상속 받아야 한다. Value Type은 상속을 사용할 수 없다 프로토콜 지향 프로그래밍 (Protocol Oriented Program) 필요한 특정 기능들을 프로토콜로 분리하여 프로그래밍하는 것을 의미한다. 프로토콜 지향 프로그래밍은 아래 장점을 가진다. Super Class에 독립적이다. Value.. 2022. 6. 19.
[Swift] 왜 struct에선 mutating을 사용해야하는가? How is struct(immutability) related to thread safety? Posted in r/swift by u/vingrish • 1 point and 14 comments www.reddit.com Swift and mutating struct There is something that I don't entirely understand when it comes to mutating value types in Swift. As the "The Swift Programming Language" iBook states: By default, the properties of a value type stackoverflow.com 왜 struct에선 mutating을 사용해야하는가? .. 2022. 6. 19.
[iOS 예제] Ripple Effect Material Design Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences. material.io Ripple Effect 아래의 이미지와 같이 버튼이나 뷰를 클릭했을 때 마치 물결이 퍼지듯 원형 모향의 애니메이션이 퍼져나가면서 사용자에게 클릭을 인지시키는 효과 위의 구글 material에서 pod으로 다운받아 사용해도 된다. Code UIView을 상속받은 protocol을 만들어서, 최대한 재사용이 가능하게끔 만듬 원리는 아래와 같다. UIView의 touch.. 2022. 6. 19.