- Build:
xcodebuild -project src/self-motivation.xcodeproj -scheme self-motivation build - Test all:
xcodebuild -project src/self-motivation.xcodeproj -scheme self-motivation test - Run single test:
xcodebuild -project src/self-motivation.xcodeproj -scheme self-motivation test -only-testing:self_motivation_tests/TestClassName/testMethodName - Build for release:
xcodebuild -project src/self-motivation.xcodeproj -scheme self-motivation -configuration Release build
- Standard imports:
Foundation,SwiftUI - Use explicit imports, avoid
import *
- Constants:
ALL_CAPS_SNAKE_CASE(e.g.,CUSTOM_MESSAGES_KEY,DEFAULT_PINNED_MESSAGE) - Configuration keys:
*_KEYsuffix - Default values:
DEFAULT_*prefix - Variables/functions:
camelCase - Classes/structs:
PascalCase
- Use
privatefor internal methods/properties - Use
@AppStoragefor UserDefaults - Use
@Bindingfor two-way data binding - Use
weak selfin closures to avoid retain cycles - Use
guard letfor early returns and optional unwrapping