Skip to content

Commit

Permalink
Merge pull request #532 from nimblehq/chore/#530-standard-file-organi…
Browse files Browse the repository at this point in the history
…zation-swiftui

[#530] Update Standard File Organization Wiki
  • Loading branch information
blyscuit authored Oct 31, 2023
2 parents ffca168 + 7962466 commit 54c98ee
Showing 1 changed file with 59 additions and 17 deletions.
76 changes: 59 additions & 17 deletions .github/wiki/Standard-File-Organization.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

To keep all current and upcoming iOS projects aligned, we standardize an iOS project’s file organization by following this below structure:

### Common

```
.
├── README.md
Expand All @@ -15,9 +17,7 @@ To keep all current and upcoming iOS projects aligned, we standardize an iOS pro
│   │   └── LaunchScreen
│   └── Sources
│   ├── Application
│   │   ├── AppDelegate.swift
│   │   ├── Application.swift
│   │   └── SceneDelegate.swift
│   │   └── Varies by UI Interface
│   ├── Constants
│   │   ├── Constants+API.swift
│   │   └── Constants.swift
Expand Down Expand Up @@ -49,27 +49,14 @@ To keep all current and upcoming iOS projects aligned, we standardize an iOS pro
│   │   ├── Authentication
│   │   └── User
│   ├── Presentation
│   │   ├── Modules
│   │   │   ├── Home
│   │   │   └── Login
│   │   ├── Navigator
│   │   │   ├── Navigator+Scene.swift
│   │   │   ├── Navigator+Transition.swift
│   │   │   └── Navigator.swift
│   │   └── Views
│   │   ├── Button
│   │   ├── CollectionView
│   │   ├── TextField
│   │   └── Transition
│   │   └── Varies by UI Interface
│   └── Supports
│   ├── Builder
│   │   └── Builder.swift
│   ├── Extensions
│   │   ├── Foundation
│   │   ├── Rx
│   │   └── UIKit
│   └── Helpers
│   ├── Rx
│   ├── Typealias
│   └── UIKit
├── {ProjectName}Tests
Expand All @@ -91,6 +78,7 @@ To keep all current and upcoming iOS projects aligned, we standardize an iOS pro
│   │   └── HomeViewModelProtocolMock+Equatable.swift
│   ├── Specs
│   │   ├── Data
│   │   │   └── Datasources
│   │   │   └── Repositories
│   │   ├── Domain
│   │   │   └── UseCases
Expand Down Expand Up @@ -123,6 +111,60 @@ To keep all current and upcoming iOS projects aligned, we standardize an iOS pro
   └── KIF+Swift.swift
```

### SwiftUI

```
.
└── {ProjectName}
   └── Sources
   ├── Application
   │   ├── {ProjectName}App.swift
   │   └── AppDelegate.swift
   └── Presentation
      ├── Models
           │   └── ProductUIModel.swift
      ├── Coordinators
           │   └── AppCoordinator.swift
      ├── Modules
      │   ├── Home
      │   └── Login
      ├── Styles
      │   └── RoundedButtonStyle.swift
      ├── ViewModifiers
      │   └── View+PrimaryNavigationBar.swift
      ├── Views
      │   └── SearchBarView.swift
      └── ViewIds
         └── ViewId.swift
```

### UIKit

```
.
└── {ProjectName}
   └── Sources
   ├── Application
   │   ├── AppDelegate.swift
   │   ├── Application.swift
   │   └── SceneDelegate.swift
   └── Presentation
      ├── Modules
      │   ├── Home
      │   └── Login
      ├── Navigator
      │   ├── Navigator+Scene.swift
      │   ├── Navigator+Transition.swift
      │   └── Navigator.swift
      └── Views
      │ ├── Button
      │ ├── CollectionView
      │ ├── TextField
      │ └── Transition
      └── ViewIds
         └── ViewId.swift
```

## README.md

`README.md` introduces the overview of the project, for example:
Expand Down

0 comments on commit 54c98ee

Please sign in to comment.