ThenGenerator
ThenGenerator copied to clipboard
Xcode Source Editor Extension for 'Then'
ThenGenerator
Overview
ThenGenerator is Xcode Source Editor Extension for Then
Install
Enviroment
- macOS 11.0 (Big Sur)
- SwiftUI
- UserDefaults
How to use
-
Install ThenGenerator
-
Enable Xcode Source Editor
->System Preferences->Extensions- Check
ThenGenerator
-
Input variable name for Generate code. Without
UIprefix. -
If you want to create a UILabel class with variable name
repoNameLabel, you input textVariableName + Label -
Select variable name
-
Editor->ThenGenerator->Generate Then Code
Use Shortcut
- Xcode Preferences.. (
⌘+,) - Key Bindings
- Search ThenGenerator
- Add Shortcut
Change Properties
- Launch
ThenGeneratorApp - Find
UIKitclass and turn on/off switch
Demo
| Single |
|
|---|
| Multiline |
|
Contribution
Xcodegen Support
- Clone ->
xcodegen generate
If you find a bug or want to add a new property, find XXXXModel.swift in Models Folder and fix or append property.
And find XXXXComponent.swift in ComponentViews Folder and add SwitchView with new property.