일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- subject
- NavigationLink
- RxCocoa
- dismiss
- URL(string:)
- NullObject
- RFC1738/1808
- Operater
- operator
- Xcode
- Bug
- SwiftUI
- SWIFT
- init?
- @State
- Creating Operators
- graphql
- nestjs
- init
- ios14
- @EnvironmentObject
- vim
- Operators
- swift6
- RxSwift
- @Environment
- IOS
- typeorm
- @Binding
- nonisolated
- Today
- Total
목록Development/iOS 개발 (57)
Tunko Development Diary
우선 associatedtype 타입은 제네릭에서 사용되는 타입입니다. associatedtype은 연관타입이라고 불리며. 연관타입은 프로토콜의 일부분으로 타입에 플레이스홀더 이름을 부여합니다. 다시 말해 특정 타입을 지정해 사용할 수 있습니다. 연관타입의 실제 사용예시입니다. protocol Container { associatedtype Item mutating func append(_ item: Item) var count: Int { get } subscript(i: Int) -> Item { get } } struct IntStack: Container { // original IntStack implementation var items = [Int]() mutating func push(_ i..
required 수식어를 클래스의 이니셜라이저 앞에 명시해주면 이 클래스를 상속받은 자식 클래스에서 반드시 해당 이니셜라이저를 구현해주어야 합니다. 다시 말하면 상속받을 때 반드시 재 정의해야 하는 이니셜라이저 앞에 required 수식어를 붙여줍니다. 다만 자식클래스에서 요구 이니셜라이저를 재정의할 때는 override수식어 대신에 required수식어를 사용합니다. class Person { var name: String required init() { self.name = "Unknown" } } class Student : Person { var major : String = "Unknown" } let 학생 : Student = Student() Person 클래스에 init() 요청 이니셜라이..

ARC(Automatic Reference Counting) 을 통해서 대부분의 문제를 해결했지만 Velue Type 이 아닌 Reference type 에서는 Retain Count를 관리해야 합니다. Swift 코딩중에 클로저와 같은 것을 사용하게 되면 종종 [weak self] 가필요합니다. 이게 왜 필요한지 차근차근 알아보려고 합니다. ARC란? Automatic Reference Counting - The Swift Programming Language (Swift 5.7) Swift에서 우리는 코드의 관계 사이에 필요한 정보를 ARC에서 제공하기 위해 weak self 와 unowned self를 사용해야 합니다. weak self 와 unowned self를 사용하지 않으면 기본적으로 str..

배타버전에선 아래 경로로 이동해 체크하면 되었었습니다. Preferences → Text Editing → Editing → Enable Vim key bindings. 하지만 변경되었네요. Editor -> Vim mode 체크 하시면 됩니다.
iOS15 업데이트 이후 스토리보드 기반으로 개발된 앱에서 네비게이션 처리가 투명이 되어 겹치는 현상이 발생했다. 아래 코드로 수정 완료. appDelegate.swiat application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions if #available(iOS 13, *) { let appearance = UINavigationBarAppearance() appearance.configureWithOpaqueBackground() //appearance.titleTextAttributes = [.foregroundColor: UIColor.black] appearance.backgroundColor = UIC..