This app is the result of my learning of design patterns.
A simple application with a list of patterns grouped by categories. All the images, as well as the design of the application, were created in Sketch. Pattern structure images are taken from refactoring.guru. Each pattern has a brief description, popularity, and complexity indicators for Swift developers, and a code example. The code samples are downloaded from this Git repository and have a specific situation implementation for the ios developer.
- Paterns are grouped by pattern types, which includes three categories: creational patterns, structural patterns, and behavioral patterns. This feature makes it easier for users to find code examples that are relevant to their needs and interests.
- Syntax highlighting for code examples. The app uses regular expressions to highlight different elements of the code, such as keywords, types, strings, and comments.
- Adjustable font size for code examples. Users can adjust the font size for better readability.
UIKit
for handling user interactions
Sketch
- application designSwift
,Xcode
Storyboard
- create the user interfacePlayground
- separate each design patternJSON
as an object to store dataRegex
- highlight keywords