iOS UI & Layout

Installation
SKILL.md

iOS UI & Layout Standards

Priority: P0

Implementation Guidelines

Auto Layout

  • Code-Based Layout: Prefer programmatic layout using NSLayoutAnchor or SnapKit over Storyboards for better source control.
  • Safe Area: Always respect view.safeAreaLayoutGuide.
  • UIStackView: Use for linear layouts to reduce constraint complexity.

UIKit Best Practices

  • View Lifecycle: Perform layout adjustments in viewWillLayoutSubviews or updateConstraints.
  • Reusable Views: Extract complex UI into custom UIView subclasses.
  • Image Optimization: Use SF Symbols for icons. Preferred vector (PDF/SVG) for custom assets.
  • SwiftUI Bridge: Use UIViewRepresentable or UIViewControllerRepresentable to host UIKit in SwiftUI.
Installs
Repository
smithery/ai
First Seen
iOS UI & Layout — smithery/ai