Document reusable view workflow
This commit is contained in:
1 parent
dd733e8e03
commit
89e81f0eb0
1 file changed
+1
@@ -42,6 +42,7 @@ Use large, custom page headings near the top of the content on the Home, Library
|
|||||||
- Before creating or updating a UI, inspect the corresponding screen and shared layout in `~/music-v2`. Mirror its structure and information hierarchy in native SwiftUI, using liquid glass only where it suits the screen and supports clarity.
|
- Before creating or updating a UI, inspect the corresponding screen and shared layout in `~/music-v2`. Mirror its structure and information hierarchy in native SwiftUI, using liquid glass only where it suits the screen and supports clarity.
|
||||||
- Use Apple's standard red accent (`.red`) and otherwise prefer SwiftUI's semantic system colors and materials. Avoid custom color values unless the user asks for them.
|
- Use Apple's standard red accent (`.red`) and otherwise prefer SwiftUI's semantic system colors and materials. Avoid custom color values unless the user asks for them.
|
||||||
- Always add a SwiftUI preview for every UI view you create or update.
|
- Always add a SwiftUI preview for every UI view you create or update.
|
||||||
|
- Before implementing or changing a view, search the codebase for existing components and practically similar UI in other screens. Reuse or extend an existing component when it fits; when the same view is needed in two or more places, extract a reusable SwiftUI component with configuration for meaningful differences instead of duplicating the implementation. In the completion report, identify any reusable component created or changed and the screens that use it.
|
||||||
- Use XcodeBuildMCP's compile-only `build_sim` action to build this Xcode project when build verification is needed; do not run `xcodebuild` from the shell when XcodeBuildMCP is available. Do not use a build-and-run action or launch a simulator without the user's explicit confirmation.
|
- Use XcodeBuildMCP's compile-only `build_sim` action to build this Xcode project when build verification is needed; do not run `xcodebuild` from the shell when XcodeBuildMCP is available. Do not use a build-and-run action or launch a simulator without the user's explicit confirmation.
|
||||||
- Before completing code changes, run available linting and type checking or a build for the affected code. Fix errors introduced by the change, and clearly report any unrelated baseline or environment failures that prevent a clean check.
|
- Before completing code changes, run available linting and type checking or a build for the affected code. Fix errors introduced by the change, and clearly report any unrelated baseline or environment failures that prevent a clean check.
|
||||||
- Do not boot, open, or launch an iOS simulator without the user's explicit confirmation. This includes XcodeBuildMCP actions such as `build_run_sim` that automatically open the simulator. Prefer compile-only simulator builds when validation is needed.
|
- Do not boot, open, or launch an iOS simulator without the user's explicit confirmation. This includes XcodeBuildMCP actions such as `build_run_sim` that automatically open the simulator. Prefer compile-only simulator builds when validation is needed.
|
||||||
|
|||||||
Reference in new issue
Block a user