Skip to content

Commit 4e6b873

Browse files
committed
update README
1 parent a7ef242 commit 4e6b873

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
In this project, I have collected various best practices and iOS development tips. This is my personal development assistant.
55

6+
## Index
7+
68
- [**Clean Code**](#clean-code)
79
- [Clean Class](#clean-class)
810
- [Life Cycle](#life-cycle)
@@ -373,7 +375,6 @@ The main MARKs for splitting the code into logically related blocks and their se
373375

374376
## **Protocols**
375377

376-
377378
### [CustomStringConvertible](https://github.com/lgreydev/Help/blob/master/Help/Protocols/CustomStringConvertible.swift)
378379
A type with a customized textual representation.
379380
Types that conform to the CustomStringConvertible protocol can provide their own representation to be used when converting an instance to a string. The String(describing:) initializer is the preferred way to convert an instance of any type to a string. If the passed instance conforms to CustomStringConvertible, the String(describing:) initializer and the print(_:) function use the instance’s custom description property. Accessing a type’s description property directly or using CustomStringConvertible as a generic constraint is discouraged.
@@ -458,10 +459,12 @@ mike > bob // true
458459

459460
```
460461

462+
**[ Back to Index](#index)**
461463

462-
## **Extensions**
463464

464465

466+
## **Extensions**
467+
465468
### [IntᐩRandom](https://github.com/lgreydev/Help/blob/master/Help/Extensions/Int+Random.swift)
466469
An extension for Int that returns a random number works with range of numbers. Negative numbers converts to positive.
467470
- **Example:** 17.random will return 0 to 17 (not including 17).
@@ -514,6 +517,9 @@ extension String {
514517

515518
```
516519

520+
**[ Back to Index](#index)**
521+
522+
517523

518524
## **Working Code**
519525

@@ -595,7 +601,6 @@ safari.getImage(text: "page 3")
595601

596602

597603

598-
599604
### [Type Casting](https://github.com/lgreydev/Help/blob/master/Help/WorkingCode/TypeCasting.swift)
600605
Type casting is a way to check the type of an instance, or to treat that instance as a different superclass or subclass from somewhere else in its own class hierarchy.
601606

@@ -884,6 +889,8 @@ showTower(for: difficulty ?? .unknown)
884889

885890
```
886891

892+
**[ Back to Index](#index)**
893+
887894

888895

889896
## **UIKit**
@@ -954,6 +961,10 @@ class SameObject: Codable {
954961

955962
```
956963

964+
**[ Back to Index](#index)**
965+
966+
967+
957968
## Table View
958969

959970
### [Move Row](https://github.com/lgreydev/Help/blob/master/Help/UIKit/TableView/MoveRow.swift)
@@ -1216,6 +1227,9 @@ class SecondViewController: UIViewController {
12161227
12171228
```
12181229
1230+
**[⬆ Back to Index](#index)**
1231+
1232+
12191233
12201234
## **Features**
12211235
@@ -1360,13 +1374,13 @@ private func respondToSwipeGesture(gesture: UIGestureRecognizer) {
13601374
13611375
```
13621376
1377+
**[⬆ Back to Index](#index)**
1378+
13631379
13641380
13651381
## **Design Patterns**
13661382
[Book Design Patterns](https://en.wikipedia.org/wiki/Design_Patterns)
13671383
1368-
1369-
13701384
### [Factory Method](https://github.com/lgreydev/Help/blob/master/Help/DesignPatterns/FactoryMethod.swift)
13711385
[Factory Method RU](https://refactoring.guru/ru/design-patterns/factory-method)
13721386
@@ -1450,11 +1464,11 @@ class SomeViewController: UIViewController {
14501464
14511465
```
14521466
1467+
**[⬆ Back to Index](#index)**
14531468
14541469
1455-
## **Leet Code**
1456-
14571470
1471+
## **Leet Code**
14581472
14591473
### [Pascal Triangle](https://github.com/lgreydev/Help/blob/master/Help/LeetCode/Pascal'sTriangle.swift)
14601474

0 commit comments

Comments
 (0)