fosmvvm-swiftui-view-generator

Generate SwiftUI ViewModelViews for FOSMVVM architectures with predefined templates.

3|2|Updated Apr 9, 2023
One-click install
npx skills add https://github.com/foscomputerservices/FOSUtilities --skill fosmvvm-swiftui-view-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fosmvvm-swiftui-view-generator
Source: https://github.com/foscomputerservices/FOSUtilities/tree/main/.claude/skills/fosmvvm-swiftui-view-generator
Command: npx skills add https://github.com/foscomputerservices/FOSUtilities --skill fosmvvm-swiftui-view-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of SwiftUI ViewModelViews for FOSMVVM architectures, speeding UI scaffolding and ensuring consistent patterns.

Core Features & Use Cases

  • Generates full SwiftUI views that conform to ViewModelView for given ViewModels.
  • Provides templates for display-only, interactive, form, and container views with built-in previews and test infrastructure.
  • Use case: rapidly add new UI components to a project by generating boilerplate that adheres to FOSMVVM conventions.

Quick Start

Invoke the fosmvvm-swiftui-view-generator to scaffold a new view for a given ViewModel within your project, specifying feature, targets, and view name. Then integrate and customize as needed.

Frequently Asked Questions about fosmvvm-swiftui-view-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold SwiftUI views for an MVVM architecture?

You can scaffold SwiftUI views for an MVVM architecture by generating display-only, interactive, form, and container templates that conform to ViewModelView conventions, automatically producing boilerplate code with built-in previews and documentation.

Can I generate form and container view templates in SwiftUI projects?

Yes, you can generate form and container view templates in SwiftUI projects by specifying the feature, targets, and view name to produce full views conforming to ViewModelView with predefined test infrastructure and previews.

What is the best way to automate SwiftUI boilerplate code generation for ViewModels?

The best way to automate SwiftUI boilerplate code generation for ViewModels is to invoke a view generator that applies templates to your defined ViewModels, ensuring consistent architectural patterns across display-only, interactive, form, and container views.

Do I need a specific ViewModel structure to generate SwiftUI views with templates?

Yes, you need a ViewModel structure compatible with the FOSMVVM architecture, as the generated SwiftUI views must conform to the ViewModelView protocol associated with your specific ViewModel definitions.

How does scaffolding new UI components with predefined view templates work?

Scaffolding new UI components with predefined view templates works by applying the SKILL frontmatter and templates workflow to generate SwiftUI views, which includes creating the view file, built-in previews, and test infrastructure for immediate integration and customization.

Why use a SwiftUI view generator instead of manually creating views for ViewModels?

Using a SwiftUI view generator instead of manually creating views accelerates UI scaffolding and ensures consistent MVVM patterns by automatically applying predefined templates for display-only, interactive, form, and container views with built-in previews and documentation scaffolding.