mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-27 03:41:21 +01:00
Updated struct.
This commit is contained in:
28
CONTRIBUTING.md
Normal file
28
CONTRIBUTING.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# Contributing
|
||||
|
||||
Here provided more info about project, contribution process and recomended changes.
|
||||
Please, read it before pull request or create issue.
|
||||
|
||||
## Codestyle
|
||||
|
||||
### Marks
|
||||
|
||||
For clean struct code good is using marks.
|
||||
|
||||
```swift
|
||||
class Example {
|
||||
|
||||
// MARK: - Init
|
||||
|
||||
init() {}
|
||||
}
|
||||
```
|
||||
|
||||
Here you find all which using in project:
|
||||
|
||||
- // MARK: - Init
|
||||
- // MARK: - Lifecycle
|
||||
- // MARK: - Layout
|
||||
- // MARK: - Helpers
|
||||
|
||||
If you can't find valid, add new to codestyle agreements please. Other can be use if class is large and need struct it even without adding to codestyle agreements.
|
||||
Reference in New Issue
Block a user