Skip to main content

swiftui-view-refactor

Refactor large SwiftUI views and clarify data flow or Observation ownership without changing behavior.

소스 정보

저장소
bronc-x/lotus
최근 소스 활동
2026년 9월 13일 15:27
감지된 SKILL.md 언어
영어
스타
23
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
swiftui-view-refactor
description
Refactor large SwiftUI views and clarify data flow or Observation ownership without changing behavior.
# SwiftUI view refactor Refactor toward small, explicit view types while preserving layout and behavior. Follow the project’s existing architecture; do not introduce a view model merely to mirror local state or wrap environment dependencies. For a substantial view split, Observation ownership change, or MV/MVVM decision, read [references/refactor-guide.md](references/refactor-guide.md) and [references/mv-patterns.md](references/mv-patterns.md). Small ordering or extraction changes need only the relevant guide section. Prefer dedicated subviews for meaningful sections, explicit inputs and bindings, thin view actions, stable view identity, and business logic in existing services or models. Match `@State`, `@StateObject`, `@ObservedObject`, and `@Observable` ownership to the deployment target and current architecture. Completion means behavior remains unchanged, the refactored code builds, relevant tests or previews pass, and failures caused by the refactor have been fixed and rechecked.
GitHub에서 보기