Skip to content

alexware/design-patterns-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

117 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt text

An open-source repo of design pattern implementations in Swift programming language.
All examples are located HERE. Check out the table below for convenience.

Table of Implementations

👮🏼 Behavioural 👷🏼 Creational       👨🏼‍🏭 Structural   👨🏼‍🎓 Non-GOF 👨🏻‍🔬 Functional
Chain of Responsibility Factory Method Facade Dependency Injection Functor
Strategy Abstract Factory Decorator Object Pool Applicative
Command Singleton Proxy Caching Monad
State Builder Adapter Private Class Data Callback
Observer Prototype Flyweight Delegate Factory Kit
Memento Bridge Multicast Delegate Future & Promise
Iterator Composite DataSource
Template Method Lazy Loading
Mediator Throttling
Interpreter
Visitor

Overview

Each pattern is overviewed in a separate Markdown file which contains description, structure, UML, advantages/disadvantages etc. Click on a pattern title to see more.

👮🏼 Behavioural

Design patterns that identify common communication patterns between objects and realize these patterns. By doing so, these patterns increase flexibility in carrying out this communication.

Chain of Responsibility
Strategy
Command
State
Observer
Iterator
Memento
Template Method
Mediator
Interpreter
Visitor

👷🏼 Creational

Design patterns that deal with object creation mechanisms, trying to create objects in a manner suitable to the situation.

Factory Method
Abstract Factory
Singleton
Builder
Prototype
Class Cluster

👨🏼‍🏭 Structural

Design patterns that ease the design by identifying a simple way to realize relationships between entities.

Facade
Decorator
Proxy
Adapter
Flyweight
Bridge
Composite

👨🏼‍🎓 Non-GOF

Design patterns that are not described in the GOF book.

Dependency Injection
Object Pool
Private Class Data
Delegate
Multicast Delegate
DataSource
Lazy Loading
Throttling

👨🏻‍🔬 Functional

Design patterns that come from functional programming.

Monad
Future & Promise
Factory Kit
Callback
Functor
Applicative Functor

About

Awesome collection of Design Patterns implemented in Swift 4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages