<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Swiftui on iOS 개발 기록</title><link>https://leetaek.github.io/tags/swiftui/</link><description>Recent content in Swiftui on iOS 개발 기록</description><image><title>iOS 개발 기록</title><url>https://leetaek.github.io/images/og-default.png</url><link>https://leetaek.github.io/images/og-default.png</link></image><generator>Hugo -- 0.170.1</generator><language>ko-kr</language><lastBuildDate>Fri, 27 Nov 2026 11:45:39 +0900</lastBuildDate><atom:link href="https://leetaek.github.io/tags/swiftui/index.xml" rel="self" type="application/rss+xml"/><item><title>SwiftUI 스크롤이 버벅인 이유는 현지화 문자열이었다</title><link>https://leetaek.github.io/posts/2026-11-27-localized-string-per-row-fps/</link><pubDate>Fri, 27 Nov 2026 11:45:39 +0900</pubDate><guid>https://leetaek.github.io/posts/2026-11-27-localized-string-per-row-fps/</guid><description>SwiftUI 목록의 줄마다 현지화 문자열을 조회하다가 스크롤이 버벅였고, 언어마다 한 번만 만들게 바꿔 62~70fps 로 돌린 기록입니다.</description></item><item><title>TCA 2.0 언제 나옴? — 우리 앱이 겪은 문제로 미리 따져 본 마이그레이션</title><link>https://leetaek.github.io/posts/2026-11-26-when-is-tca-2/</link><pubDate>Thu, 26 Nov 2026 17:58:02 +0900</pubDate><guid>https://leetaek.github.io/posts/2026-11-26-when-is-tca-2/</guid><description>TCA 2.0 출시일은 아직 없어서, 공개된 미리보기 문서를 새기다에서 겪은 문제 여섯 가지와 맞춰 봤습니다.</description></item><item><title>[AI] 코드를 덜 읽는 대신 무엇을 확인했나: 새기다의 AI 개발 기록</title><link>https://leetaek.github.io/posts/2026-11-09-ai-orchestration-06-verification/</link><pubDate>Mon, 09 Nov 2026 16:37:38 +0900</pubDate><guid>https://leetaek.github.io/posts/2026-11-09-ai-orchestration-06-verification/</guid><description>&lt;p&gt;올해 초에는 &lt;a href="https://leetaek.github.io/posts/2026-03-26-codex-automation-draft-pr/"&gt;Codex에게 밤새 이슈 하나를 맡기고 Draft PR을 받아 봤습니다&lt;/a&gt;. 그때는 밀린 버그 몇 개만 정리해 줘도 좋겠다고 생각했는데요.&lt;/p&gt;
&lt;p&gt;그러다 가을에는 두 달 동안 새기다의 기능 구현과 테스트까지 대부분 에이전트에게 맡겼고 앱을 세 번 출시했습니다.&lt;/p&gt;</description></item><item><title>[Tuist] 모듈화 후에 SwiftUI Preview 에러 (Static &amp; Dynamic Frameworks와 BuildSystem)</title><link>https://leetaek.github.io/posts/2025-02-27-tuist-swiftui-preview/</link><pubDate>Thu, 27 Feb 2025 17:43:00 +0900</pubDate><guid>https://leetaek.github.io/posts/2025-02-27-tuist-swiftui-preview/</guid><description>&lt;h3 id="에러-발생"&gt;에러 발생&lt;/h3&gt;
&lt;p&gt;SwiftUI에서 프리뷰(Preview) 기능은 뷰를 코드 작성과 동시에 빠르게 확인할 수 있는 유용한 도구입니다. 빌드와 시뮬레이터 실행 없이도 바로 결과를 볼 수 있기 때문에 View의 레이아웃이나 UI 요소의 개발 효율성을 크게 향상시킵니다.&lt;/p&gt;</description></item><item><title>[SwiftData] iOS18이상에서 ModelContext.reset 호출로 인해 나타나는 런타임 오류 (TCA+SwiftData)</title><link>https://leetaek.github.io/posts/2024-10-02-swiftdata-modelcontext-reset/</link><pubDate>Wed, 02 Oct 2024 14:45:12 +0900</pubDate><guid>https://leetaek.github.io/posts/2024-10-02-swiftdata-modelcontext-reset/</guid><description>&lt;p&gt;&lt;img loading="lazy" src="https://leetaek.github.io/images/tistory/85/01.webp"&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Fatal error: This model instance was destroyed by calling ModelContext.reset and is no longer usable.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4&gt;&lt;/h4&gt;
&lt;h4&gt;&lt;/h4&gt;
&lt;h4 id="발생-상황"&gt;발생 상황&lt;/h4&gt;
&lt;p&gt;iPadOS18 이상으로 업데이트하니 갑자기 사이드 프로젝트 앱에서 다음과 같은 에러와 함께 강제 종료가 되기 시작했다.&lt;/p&gt;
&lt;p&gt;iOS17까지는 잘 돌아가던 코드가 18부터 오류가 발생하기 시작한 것.&lt;/p&gt;</description></item><item><title>[TCA] Composable Architecture에서 NavigationSplitView 사용하기</title><link>https://leetaek.github.io/posts/2024-07-23-tca-navigationsplitview/</link><pubDate>Tue, 23 Jul 2024 16:17:39 +0900</pubDate><guid>https://leetaek.github.io/posts/2024-07-23-tca-navigationsplitview/</guid><description>&lt;p&gt;Composable Architecture(이하 TCA)에서 NavigationSplitView를 통해 화면전환을 주절주절 다루는 포스트입니다.&lt;/p&gt;
&lt;p&gt;iOS 17.0 이상, TCA 1.9 이상 버전을 기준으로 작성된 코드입니다.&lt;/p&gt;</description></item><item><title>[TCA] SharedState의 UserDefaults 확장하기 (CodableAppStorageKey)</title><link>https://leetaek.github.io/posts/2024-07-18-tca-codable-appstorage/</link><pubDate>Thu, 18 Jul 2024 10:20:18 +0900</pubDate><guid>https://leetaek.github.io/posts/2024-07-18-tca-codable-appstorage/</guid><description>&lt;p&gt;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.)에 대한 내용입니다.&lt;/p&gt;</description></item><item><title>[SwiftUI] VisionKit을 통해 카메라로 찍은 이미지에서 한글 OCR 구현하기</title><link>https://leetaek.github.io/posts/2023-04-14-visionkit-korean-ocr/</link><pubDate>Fri, 14 Apr 2023 13:56:14 +0900</pubDate><guid>https://leetaek.github.io/posts/2023-04-14-visionkit-korean-ocr/</guid><description>&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;iOS 11부터 애플이 지원하는 &lt;a href="https://developer.apple.com/documentation/vision"&gt;Vision&lt;/a&gt; 이라는 프레임워크가 있다. 머신러닝 기능을 활용하여 이미지나 비디오, 얼굴이나 바코드, 텍스트 등을 인식하여 다양한 작업을 수행할 수 있도록 하는 프레임워크다.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;애플에서 이용해 직접 지원하다보니 빠르고 효율적이며, &lt;strong&gt;무료이다…!&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;이를 활용하여 이미지에서 텍스트를 인식하는 OCR 기능을 사용할 수 있는데, &lt;code&gt;iOS 16.0&lt;/code&gt;부터 드디어 지원 언어에 한국어도 포함이 되었다. 이를 통해 간단하게 이미지로부터 한국어 텍스트를 인식하는 기능을 만들어 보려고 한다.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;아래는 &lt;code&gt;iOS 16.4&lt;/code&gt;에서 지원 언어와 &lt;code&gt;iOS 15.5&lt;/code&gt;에서 Vision의 지원 언어이다. 한국어(ko-KR) 가 추가되어 있다.&lt;/p&gt;
&lt;p&gt;&lt;img loading="lazy" src="https://leetaek.github.io/images/tistory/76/01.webp"&gt;&lt;/p&gt;
&lt;p&gt;&lt;img loading="lazy" src="https://leetaek.github.io/images/tistory/76/02.webp"&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>[SwiftUI] AppDelegate 없이 Remote Push Notification 설정하기</title><link>https://leetaek.github.io/posts/2023-03-16-swiftui-remote-push/</link><pubDate>Thu, 16 Mar 2023 13:32:46 +0900</pubDate><guid>https://leetaek.github.io/posts/2023-03-16-swiftui-remote-push/</guid><description>&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;SwiftUI&lt;/code&gt;로 넘어오면서 &lt;code&gt;AppDelegate&lt;/code&gt;와 &lt;code&gt;SceneDelegate&lt;/code&gt;가 중심이 되던 앱의 라이프사이클에 변화가 생겼다. → &lt;a href="https://leetaek.tistory.com/67"&gt;[SwiftUI]AppDelegate, SceneDelegate 만들기&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Remote Push Notification의 경우 설정을 AppDelegate에서 해줘야 했는데, 이를 순수하게 SwiftUI의 라이프 사이클에 맞게 변경해보고 싶었다.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;아래는 결론 도출을 위해 겪은 과정이다. FCM 을 통해 Remote Notification을 구현하려고 했는데, Firebase나 인증서와 관련된 내용은 생략하고 여기에는 앱의 코드만 작성한다.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;결론부터 말하자면 그런거 없다.🥲 &lt;strong&gt;AppDelegate를 만들어 사용해야 한다. (SwiftUI 4.0 기준)&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>[iOS] PencilKit</title><link>https://leetaek.github.io/posts/2022-07-07-pencilkit/</link><pubDate>Thu, 07 Jul 2022 17:22:33 +0900</pubDate><guid>https://leetaek.github.io/posts/2022-07-07-pencilkit/</guid><description>&lt;p&gt;PencilKit은 2019년부터 애플에서 지원하는 프레임워크다. PencilKit은 터치와 Apple Pencil 입력을 그림으로 캡처하고 앱에 표시하는 기능을 지원한다. iOS13 이상부터 지원하며 앱에 그림 그리는 기능을 쉽게 구현할 수 있다.&lt;/p&gt;</description></item></channel></rss>