iOS 썸네일형 리스트형 Xcode Package 이름 변경 방법 1. Navigation에서 패키지 명을 더블 클릭하여 이름을 변경한다. 2. 아래와 같은 창이 뜨면 하단의 패키지 명을 모두 Rename 버튼을 클릭하여 변경한다. 3. Bundle Setting에서 이전 이름을 검색하여 새로운 이름으로 변경해준다. 4. Targets 에서 Identity and Type의 Location 경로를 이름이 변경된 디렉터리로 선택하여 변경해준다. 5. Project 명 우클릭을 한 후 Show in Finder를 선택하여 폴더명을 변경해준다. 더보기 CombineLatest Vs Zip CombineLatest Subscribes to an additional publisher and publishes a tuple upon receiving output from either publisher. 추가의 퍼블리셔 를 연결하여 Tuple 형태로 묶어서 값을 방출하는 연산자 var cancellables: Set = [] let left = PassthroughSubject() let right = PassthroughSubject() let combineLatest = Publishers.CombineLatest(left, right) combineLatest.sink(receiveValue: { result in print("combineLatest: \\(result.0), \\(res.. 더보기 Final The final keyword is used to indicate that a class, method, or property cannot be overridden or subclassed Declaring a class as final, it means that it’s the end of the inheritance chain for that class, and it cannot be subclassed further. final class LastClass { // Class definition } // error! PleaseNot class cannot inherit from a 'final' class 'LastClass' class PleaseNot: LastClass { } Benefic.. 더보기 Format Specifiers %@ : String %i : Bool %d : Signed 32-bit integer %D: Signed 32-bit integer %u: Unsigned 32-bit integer %U: Unsigned 32-bit integer %x: Unsigned 32-bit integer in lowercase hexadecimal format %X: Unsigned 32-bit integer in UPPERCASE hexadecimal format %o: Unsigned 32-bit integer in octal format %O: Unsigned 32-bit integer in octal format %f: 64-bit floating-point number %F: 64-bit floating-point .. 더보기 Xcode 15 이슈 Xcode 15 이슈 Xcode 15 사용하여 앱 빌드 시 duplicated symbol 에러 발생 신규로 추가된 linker에 버그가 있어 발생하는 것 같다고 추정 정적 링크 속도를 크게 향상시키는 새로운 링커가 작성됨(Xcode new feature) 이 링커는 모든 iOS 바이너리와 'Mergeable Libraries'기능을 사용하는 모든 사용자에게 기본값으로 제공됨. (클래식 링커는 여전히 -ld64를 사용하여 명시적으로 요청할 수 있으며, 향후 릴리스에서 제거될 예정) 해결방법 Build Settings → Other Linker Flags → add -ld64 관련자료 Xcode 15 beta includes a new linker, known as ld_prime. This has a b.. 더보기 SwiftUI Preview SwiftUI: PreviewProvider PreviewProvider는 Xcode안에서 뷰의 프리뷰를 만드는 프로토콜 타입 입니다. associated type인 Previews를 View 타입으로 가지고 있다. 여기서 View타입은 SwiftUI view이다. UIViewControllerRepresentable UIViewController를 SwiftUI로 변경하는데 사용 되는 다리의 역할을 하는 프로토콜. Adopt this protocol in one of your app's custom instances, and use its methods to create, update, and tear down your view controller. The creation and update proce.. 더보기 이전 1 2 다음