https://github.com/mihail-konoplitskyi/4ksoft-xcode-templates
Native XCode Templates written with Swift 5 for automatic components generation and saving iOS/MacOS developers time
https://github.com/mihail-konoplitskyi/4ksoft-xcode-templates
4k-soft apple automation example-repo example-screen examples ios ios-demo ios-ui macos mit-license opensource swift swift-language swift-xcode-templates swift5 swiftui xcode xcode-templates xcodeproj
Last synced: 4 months ago
JSON representation
Native XCode Templates written with Swift 5 for automatic components generation and saving iOS/MacOS developers time
- Host: GitHub
- URL: https://github.com/mihail-konoplitskyi/4ksoft-xcode-templates
- Owner: mihail-konoplitskyi
- License: mit
- Created: 2022-09-17T18:09:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T18:43:48.000Z (over 3 years ago)
- Last Synced: 2025-04-10T01:14:22.649Z (about 1 year ago)
- Topics: 4k-soft, apple, automation, example-repo, example-screen, examples, ios, ios-demo, ios-ui, macos, mit-license, opensource, swift, swift-language, swift-xcode-templates, swift5, swiftui, xcode, xcode-templates, xcodeproj
- Language: Swift
- Homepage:
- Size: 21.7 MB
- Stars: 50
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# XCode Templates written with Swift 5
[](https://img.shields.io/badge/Swift-5.3_5.4_5.5_5.6-Orange?style=flat-square)
[](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS-Green?style=flat-square)
[](https://img.shields.io/badge/license-MIT-blue)
[](https://img.shields.io/badge/SwiftLint-approved-darkgreen?style=flat-square)
[](https://gitter.im/XCode-Templates/XCode_Templates?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
XCode Templates was created to save time for iOS/MacOS developers that are usually spending time copy-pasting same code from another projects just to create new screen with simple UI elements. With XCode Templates this process can be significantly automated.
It automatically creates MVP components for a new screen: programmatical view, view controller, helpers, services, extension, models, etc.
The main idea is to create All-in-One solution where developer will be able to select template, UI framework (UIKit/SwiftUI) and select needed architecture (MVC/MVP/MVVM/VIPER).
In every template I'm using only programmatical view, no xib/storyboard.
Feel free to leave your [wishes](https://github.com/mihail-konoplitskyi/4KSOFT-XCode-Templates/issues/new) and [comments](https://github.com/mihail-konoplitskyi/4KSOFT-XCode-Templates/issues/new).
- [How to start using](#how-to-start-using)
- [Examples](#examples)
- [Projects](#projects-built-with-xcode-templates)
- [Future plans](#future-plans)
## How to start using
- Create "Templates" directory
```bash
$ mkdir ~/Library/Developer/Xcode/Templates
```
- Open "Templates" directory that you just created
```
$ cd ~/Library/Developer/Xcode/Templates
```
- Clone repository
```
$ git clone https://github.com/mihail-konoplitskyi/4KSOFT-XCode-Templates.git
```
- Restart XCode if it was opened
- Open XCode project, press CMD+N, scroll down to 4KSOFT-XCode-Templates and use needed template

- Add newly created module to a project


- Remove module reference from a project (remove reference, not a directory)

- Highly recommend to use [SwiftLint](https://github.com/realm/SwiftLint#installation) in your project using [.swiftlint.yml](https://github.com/mihail-konoplitskyi/4KSOFT-XCode-Templates/blob/master/.swiftlint.yml) which was used to create templates
- Templates are using different third-party frameworks. You can find installation guide below:
- [SnapKit](https://github.com/SnapKit/SnapKit#installation) (DSL to make Auto Layout easy on both iOS and OS X)
## Examples
#### Empty View Controller

#### Table View

#### Collection View

#### Carousel Collection View

#### Paging Scroll View

## Projects built with XCode Templates
- [Hide Expert VPN](https://apps.apple.com/gb/app/hide-expert-vpn/id1616168170?platform=iphone)
- [Sona](https://apps.apple.com/gb/app/sona-healthy-sleep/id1617545266)
## Future plans
All iOS/MacOS developers are spending tons of time doing absolutely identical work. This repository was created to solve this problem. In a close future I will create most recent templates for developers needs.
After most recent templates will be created with UIKit, I'll start preparing AppKit templates for MacOS and SwiftUI templates.