nonameplum

swift-dependencies

A dependency management library for Swift with controlled, testable dependencies

nonameplum 17 2 Updated 8mo ago

Resources

2
GitHub

Install

npx skillscat add nonameplum/agent-skills/swift-dependencies

Install via the SkillsCat registry.

About this skill

The skill provides a dependency management library for Swift that lets developers register, inject, and control dependencies in a testable way. It solves the problem of tightly coupled code and difficult testing by enabling controlled, interchangeable dependencies. Use it when building Swift applications that require modular, easily testable architectures.

SKILL.md

Dependencies

A dependency management library inspired by SwiftUI's "environment."

Documentation Structure

Getting started

  • Quick start (Articles/QuickStart.md): Learn the basics of getting started with the library before diving deep into all of its features.
  • What are dependencies? (Articles/WhatAreDependencies.md): Learn what dependencies are, how they complicate your code, and why you want to control them.

Essentials

  • Using dependencies (Articles/UsingDependencies.md): Learn how to use the dependencies that are registered with the library.
  • Registering dependencies (Articles/RegisteringDependencies.md): Learn how to register your own dependencies with the library so that they immediately become
  • Live, preview, and test dependencies (Articles/LivePreviewTest.md): Learn how to provide different implementations of your dependencies for use in the live application,
  • Testing (Articles/Testing.md): One of the main reasons to control dependencies is to allow for easier testing. Learn some tips and

Advanced

  • Designing dependencies (Articles/DesigningDependencies.md): Learn techniques on designing your dependencies so that they are most flexible for injecting into
  • Overriding dependencies (Articles/OverridingDependencies.md): Learn how dependencies can be changed at runtime so that certain parts of your application can use
  • Dependency lifetimes (Articles/Lifetimes.md): Learn about the lifetimes of dependencies, how to prolong the lifetime of a dependency, and how
  • Single entry point systems (Articles/SingleEntryPointSystems.md): Learn about "single entry point" systems, and why they are best suited for this dependencies

Dependency management

Usage Notes

  • Documentation is organized progressively from getting started to advanced topics
  • Start with the Introduction or Getting Started section
  • Consult specific guides for detailed information

License & Attribution

This skill contains content converted from DocC documentation format.