Skillshub ios-storyboard

iOS Storyboard Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/ios-storyboard" ~/.claude/skills/comeonoliver-skillshub-ios-storyboard && rm -rf "$T"
manifest: skills/pproenca/dot-skills/ios-storyboard/SKILL.md
source content

iOS Storyboard Best Practices

Legacy interoperability guidance for storyboard-heavy code that still exists in clinic projects. Not for new SwiftUI clinic feature development.

Comprehensive UI design and architecture guide for Xcode Storyboard and Interface Builder, focused on building maintainable, adaptive, and accessible iOS interfaces. Contains 45 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

Clinic Architecture Contract (iOS 26 / Swift 6.2)

All guidance in this skill assumes the clinic modular MVVM-C architecture:

  • Feature modules import
    Domain
    +
    DesignSystem
    only (never
    Data
    , never sibling features)
  • App target is the convergence point and owns
    DependencyContainer
    , concrete coordinators, and Route Shell wiring
  • Domain
    stays pure Swift and defines models plus repository,
    *Coordinating
    ,
    ErrorRouting
    , and
    AppError
    contracts
  • Data
    owns SwiftData/network/sync/retry/background I/O and implements Domain protocols
  • Read/write flow defaults to stale-while-revalidate reads and optimistic queued writes
  • ViewModels call repository protocols directly (no default use-case/interactor layer)

When to Apply

Reference these guidelines when:

  • Creating or modifying Storyboard scenes in Xcode Interface Builder
  • Setting up Auto Layout constraints for adaptive layouts
  • Designing navigation flows with segues and storyboard references
  • Configuring size classes and trait variations for universal apps
  • Reviewing storyboard XML diffs and resolving merge conflicts

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Storyboard ArchitectureCRITICAL
arch-
2Auto Layout ConstraintsCRITICAL
layout-
3Navigation & SeguesHIGH
nav-
4Adaptive Layout & Size ClassesHIGH
adapt-
5View Hierarchy & Stack ViewsMEDIUM-HIGH
view-
6Accessibility & VoiceOverMEDIUM
ally-
7Version Control & CollaborationMEDIUM
vcs-
8Debugging & InspectionLOW-MEDIUM
debug-

Quick Reference

1. Storyboard Architecture (CRITICAL)

2. Auto Layout Constraints (CRITICAL)

3. Navigation & Segues (HIGH)

4. Adaptive Layout & Size Classes (HIGH)

5. View Hierarchy & Stack Views (MEDIUM-HIGH)

6. Accessibility & VoiceOver (MEDIUM)

7. Version Control & Collaboration (MEDIUM)

8. Debugging & Inspection (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information