Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Swift
  3. Fashion

Fashion

NOASSERTIONSwift4.2.0

A Swift library for sharing and reusing UI styles across iOS apps, decoupling styling from layout code.

Visit WebsiteGitHubGitHub
137 stars18 forks0 contributors

What is Fashion?

Fashion is a Swift library for iOS development that helps developers share and reuse UI styles across their applications. It provides a structured way to decouple styling from layout code, improving customization and maintainability while offering more flexibility than UIAppearance.

Target Audience

iOS developers building native Swift applications who need a clean, reusable approach to UI styling and want to move beyond UIAppearance limitations.

Value Proposition

Developers choose Fashion for its Swifty, type-safe API that organizes styles into reusable stylesheets, supports style composition, and provides multiple application methods while maintaining native iOS development patterns.

Overview

:nail_care: Fashion accessories and beauty tools to share and reuse UI styles in a Swifty way

Use Cases

Best For

  • Organizing UI styles in large iOS codebases
  • Creating reusable design systems for Swift apps
  • Applying consistent styling across multiple view instances
  • Decoupling styling logic from view layout code
  • Managing complex UI customization beyond UIAppearance
  • Building maintainable iOS apps with shared style libraries

Not Ideal For

  • iOS projects exclusively built with SwiftUI
  • Prototype apps with minimal UI where inline styling suffices
  • Teams already using comprehensive design systems like Texture or manual UIAppearance without abstraction needs

Pros & Cons

Pros

Structured Stylesheet Organization

Encapsulates styles in dedicated classes via the Stylesheet protocol, cleanly separating styling logic from view code as shown in the define() method examples.

Type-Safe Style Definitions

Uses Swift enums and StringConvertible protocols to avoid magic strings, enhancing code safety and refactoring, as demonstrated with the Style enum.

Flexible Style Application

Supports multiple application methods including convenience initializers, apply functions, and IBInspectable properties, offering versatility in how styles are applied.

Style Composition and Reuse

Allows combining styles with Style.compose() for modular design, promoting DRY principles and flexible reuse across components.

Cons

UIKit-Only Limitation

Does not support SwiftUI, making it irrelevant for modern iOS projects adopting Apple's declarative UI framework, as it's solely built for UIKit.

Setup and Boilerplate Overhead

Requires initial registration of stylesheets and style definitions, adding complexity for simple apps or quick prototypes where lightweight styling is preferred.

Potential Maintenance Concerns

The README indicates Swift 4.0 compatibility, suggesting it may not be actively updated for newer Swift versions or iOS features, risking obsolescence.

Frequently Asked Questions

Quick Stats

Stars137
Forks18
Contributors0
Open Issues1
Last commit2 years ago
CreatedSince 2016

Tags

#design-system#ios#code-organization#stylesheet#ui-components#mobile-development#swift#ui-styling#uikit

Built With

U
UIKit
i
iOS
S
Swift

Links & Resources

Website

Included in

Swift26.0k
Auto-fetched 1 day ago

Related Projects

SkeletonViewSkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting

Stars12,890
Forks1,122
Last commit4 months ago
MaterialMaterial

A UI/UX framework for creating beautiful applications.

Stars12,017
Forks1,260
Last commit4 years ago
NVActivityIndicatorViewNVActivityIndicatorView

A collection of awesome loading animations

Stars10,700
Forks1,153
Last commit7 months ago
MacawMacaw

Powerful and easy-to-use vector graphics Swift library with SVG support

Stars6,046
Forks567
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub