• Stars
    star
    115
  • Rank 304,100 (Top 7 %)
  • Language
    Swift
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

More Repositories

1

WWDCHelper

⏬ Help you get WWDC info easily, especially for subtitles.
Swift
214
star
2

Perspective

📝 Write something with perspectives.
C++
185
star
3

JueJueZiGenerator

绝绝子生成器,YYDS!仅供娱乐,切勿当真~
HTML
164
star
4

CS193p

Notes & code for CS193p 2017 & 2021 - Developing Apps for iOS
Swift
87
star
5

ChatGKD

A new app for ChatGPT in SwiftUI & Vue 3
Swift
28
star
6

Swift-X-Algorithms

🔨 Algorithms & Data Structures implemented in Swift X. `let X = 5.0`
Swift
22
star
7

MyBatisGenerator-Tool

🔧 A tool which aims to generate code by using MyBatis Generator with Gradle in IntelliJ IDEA.
Java
19
star
8

OFOBike

A demo app like OFO Bike in Swift.
Swift
17
star
9

UIViewController-UIView-LifecycleDemo

Find out the lifecycle of UIViewController & UIView.
Swift
12
star
10

gitlab-mr-jira-issue-trigger

🚀 A GitLab webhook to trigger Jira issue transition when merge request events occurred.
Go
9
star
11

Jirara

⚙️ A tiny helper for Jira in your macOS menu bar.
Swift
7
star
12

bounds-frame-Demo

bounds & frame Demo in Swift 3.0
Swift
4
star
13

ChangeGPT

An open-sourced Chrome extension for changing your ChatGPT experience.
JavaScript
4
star
14

TableManners

A browser extension for the <table>s.
JavaScript
3
star
15

fluwer

🌼 A simple app for easily distributing apps, downloading packages, and tracking issues.
Dart
3
star
16

UIAppearance-Demo

UIAppearance Demo in Swift 3.0
Swift
3
star
17

fanfou_backup

A GitHub Actions workflow for backup of fanfou.com.
Python
3
star
18

iMeiZi

A demo app browse beauties from web.
Swift
3
star
19

swift-tips-in-practice

SwiftTips in practice.
Swift
3
star
20

Learning-RxSwift

RxSwift notes & code (=> Swift 4.2 ing)
Swift
3
star
21

danger-tinypng

💎 A plugin for Danger to compress your PNG/JPEG images by using TinyPNG API.
Ruby
3
star
22

gitlab-mr-watchdog

🐶 Watch your GitLab merge requests status, then notify you in time.
Go
3
star
23

deskmini-hackintosh

My Hackintosh for work.
2
star
24

kingcos.github.io

kingcos.me
HTML
2
star
25

swiftui-from-scratch

Let's start with SwiftUI~
Swift
2
star
26

iTools

Introducing my tools that I use everyday.
Shell
2
star
27

SingleViewAppManually-Demo

Create an iOS single view application manually in Swift.
Swift
2
star
28

SwiftJumper

微信小游戏「跳一跳」Swift 版小助手。
Swift
2
star
29

libraries_in_ios-demo

iOS 中的库与框架 Demo
Objective-C
2
star
30

BuDeJie_Swift3

BuDeJie iOS App Demo implemented in Swift 3.0.
Swift
1
star
31

Readit

Objective-C
1
star
32

blog-demos

Demo projects for my blog.
Objective-C
1
star
33

cocoapods-backup

Using current sources for your pods.
Ruby
1
star
34

Swift-X

Just for Swift
Swift
1
star
35

SmartHome

My smart home solution by HomeKit.
1
star
36

collins-crawler

A crawler for persistent words & details using Collins dictionary.(en to en & zh)
Python
1
star
37

TeamBug

A team fight against themselves.
HTML
1
star
38

ML-Scratch-WWDC18

[Rejected]My application for WWDC18 Scholarship.
Swift
1
star
39

kingcos

1
star
40

7900407-bilibili

1
star
41

Perspective-WeApp

A WeApp of my personal blog - Perspective.
JavaScript
1
star
42

kingcos.me.github.io

HTML
1
star
43

Resume

My Personal Résumé. ➡️
1
star
44

SwiftRegexExtractor

💉 Extract what you want by regex in Swift.
Swift
1
star
45

DouYuZhiBo

Build an app like DouYou TV.
Swift
1
star
46

Perspective-Vapor

A Vapor server for WeApp of my personal blog - Perspective.
Swift
1
star
47

mounter

Just sucks code.
Objective-C
1
star
48

danger-checker

💎 A plugin for Danger to simply check your changes as you like.
Ruby
1
star
49

CourseDesign

在校完成的部分小项目,仅为方便同学们交流。
Java
1
star