Skip to content

kingcos/Swift-X-Design-Patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift-X-Design-Patterns

Design patterns implemented in Swift X.

GitHub license Swift 4.2

English | 中文

Introduction

Hello!

Please forgive my poor English. I am a college student who loved Swift programming language and iOS development from China. This repository is to demonstrate design patterns in Swift X (let X = 4.2). As we know, Swift is an awesome programming language around the world and it's growth so rapidly. These design patterns will be updated with my new articles in Chinese.

If my code did help you, would you please give me a Star 🌟? It will courage me to move on! Thank you!

No doubt that I would made some mistakes in it, if you find some bugs, please issue me. I am looking forward to discuss with you about the magic of Swift! Thank you!

Contents

  1. Simple Factory Pattern
  2. Factory Method Pattern
  3. Abstract Factory Pattern
  4. Strategy Pattern
  5. Decorator Pattern
  6. Proxy Pattern
  7. Prototype Pattern
  8. Template Pattern
  9. Facade Pattern
  10. Builder Pattern
  11. Observer Pattern
  12. Delegate Pattern
  13. State Pattern
  14. Adapter Pattern
  15. Memento Pattern
  16. Composite Pattern
  17. Iterator Pattern
  18. Singleton Pattern
  19. Bridge Pattern
  20. Command Pattern
  21. Chain of Responsibility Pattern
  22. Mediator Pattern
  23. Flyweight Pattern
  24. Interpreter Pattern
  25. Visitor Pattern

Reference

License

  • Apache-2.0

About

✏️ Design patterns implemented in Swift X. `let X = 5.x`

Topics

Resources

License

Stars

Watchers

Forks

Languages