TCA 2.0 언제 나옴? — 우리 앱이 겪은 문제로 미리 따져 본 마이그레이션
Point-Free 의 블랙프라이데이 할인 메일을 읽다가 「내년에 다룰 것」 목록에 ComposableArchitecture 2.0 이 들어 있는 걸 봤습니다. 엄밀히는 출시 예고가 아니라 「내년에 다룰 주제」 목록이에요. 그래도 내년에 본격적으로 다룬다니, 기대를 가지고 미리 체크해 보기로 했습니다. ...
Point-Free 의 블랙프라이데이 할인 메일을 읽다가 「내년에 다룰 것」 목록에 ComposableArchitecture 2.0 이 들어 있는 걸 봤습니다. 엄밀히는 출시 예고가 아니라 「내년에 다룰 주제」 목록이에요. 그래도 내년에 본격적으로 다룬다니, 기대를 가지고 미리 체크해 보기로 했습니다. ...
“SpaceX 개발자는 이제 코드를 안 본다”는 이야기를 접했습니다. 찾아보니 회사 전체의 방식이라기보다 SpaceXAI의 GrokBot 팀에서 일하는 Lauren Tan이 발표에서 소개한 자신의 작업 방식에 가까웠습니다. 제게는 코드를 안 본다는 말보다 에이전트에 일을 맡기려고 어떤 구조와 검증 환경을 갖췄는지가 더 기억에 남았습니다. ...
올해 초에는 Codex에게 밤새 이슈 하나를 맡기고 Draft PR을 받아 봤습니다. 그때는 밀린 버그 몇 개만 정리해 줘도 좋겠다고 생각했는데요. 그러다 가을에는 두 달 동안 새기다의 기능 구현과 테스트까지 대부분 에이전트에게 맡겼고 앱을 세 번 출시했습니다. ...
에러 발생 SwiftUI에서 프리뷰(Preview) 기능은 뷰를 코드 작성과 동시에 빠르게 확인할 수 있는 유용한 도구입니다. 빌드와 시뮬레이터 실행 없이도 바로 결과를 볼 수 있기 때문에 View의 레이아웃이나 UI 요소의 개발 효율성을 크게 향상시킵니다. ...
Fatal error: This model instance was destroyed by calling ModelContext.reset and is no longer usable. 발생 상황 iPadOS18 이상으로 업데이트하니 갑자기 사이드 프로젝트 앱에서 다음과 같은 에러와 함께 강제 종료가 되기 시작했다. iOS17까지는 잘 돌아가던 코드가 18부터 오류가 발생하기 시작한 것. ...
Composable Architecture(이하 TCA)에서 NavigationSplitView를 통해 화면전환을 주절주절 다루는 포스트입니다. iOS 17.0 이상, TCA 1.9 이상 버전을 기준으로 작성된 코드입니다. ...
TCA에서 사용되는 [SharedState](http://Sharing%20state Learn techniques for sharing state throughout many parts of your application, and how to persist data to user defaults, the file system, and other external mediums. Overview Sharing state is the process of letting many features have access to the same data so that when any feature makes a change to this data it is instantly visible to every other feature. Such sharing can be really handy, but also does not play nicely with value types, which are copied rather than shared. Because the Composable Architecture highly prefers modeling domains with value types rather than reference types, sharing state can be tricky. This is why the library comes with a few tools for sharing state with many parts of your application. There are two main kinds of shared state in the library: explicitly passed state and persisted state. And there are 3 persistence strategies shipped with the library: in-memory, user defaults, and file storage. You can also implement your own persistence strategy if you want to use something other than user defaults or the file system, such as SQLite.)에 대한 내용입니다. ...
업데이트 계기 원래 사용하던 Tuist의 버전은 3.x버전이었다. 4.x대로 업데이트 할 생각은 없었다. 개인적으로 혼자 사이드 프로젝트로 진행하던 아이패드용 앱이 있는데, SwiftUI + Composable Architecture(이하 TCA)를 사용하며 Tuist로 관리하는 프로젝트였다. TCA의 빠른 업데이트 속도를 따라가는것도 벅차서 Tuist 까지 업데이트를 따라가기엔 부담이 있었기 때문이었다. ...