-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the XCode-DI-Templates wiki!
An architectural Swinject Infused Xcode Template to use as a starting point for an iOS and tvOS Apps.
- Clone the XCode-DI-Templates Repository into your developer folder
- Navigate into the cloned repository and run the following command to install the templates.
sudo sh install.sh
Once the templates are installed, XCode-DI will show up in your default templates when creating a new Xcode project for iOS and tvOS.
The project contains a pre-configured Cartfile with the all framework imports, build phase scripts, and standard project scaffolding configured. In the root directory of your project, run the following command to install the frameworks included as part of the template.
/* For iOS */
carthage update --platform ios
/* For tvOS */
carthage update --platform tvos
The new project is configured with the following frameworks, as reflected by the scaffolding:
|
|
The last step is to download them via Carthage and have them built. In the root directory of your project, run the following command.
File Templates Included:
-
ViewController
- Extends BaseViewController included in the DI Template
- Pre-Configured method overrides
-
View
- Extends BaseView included in the DI Template
- Pre-Configured method overrides
-
Collection ViewController
- Extends BaseViewController included in the DI Template
- Bootstraps CollectionView Delegate/DataSource methods
-
CollectionViewCell
- Extends BaseCollectionViewCell included in the DI Template
- Pre-Configured method overrides
-
Service
- Service Class
- Test Service Class
- Pre-Configured with abstract protocol
-
Data Service
- Service Class
- Test Service Class
- Networked Service
- Pre-Configured with abstract protocols
-
Network Service
- Networking Service
- Pre configured with Alamofire out of the box
-
Transitioning Container ViewController
- Container ViewController
- Pre-Configured for UIViewControllerAnimatedTransitioning
-
Transitioning Animator
- Pre-Configured UIViewControllerAnimatedTransitioning instance
-
Video ViewController
- Extends BaseViewController included in the DI Template
- Pre-Configured to play single video file