Xcode Source Editor Extension for 'Then'
ThenGenerator
Overview
ThenGenerator is Xcode Source Editor Extension for Then
Install
Enviroment
How to use
Install ThenGenerator
Enable Xcode Source Editor
-> System Preferences
-> Extensions
ThenGenerator
Input variable name for Generate code. Without UI
prefix.
If you want to create a UILabel class with variable name repoNameLabel
, you input text VariableName + Label
Select variable name
Editor
-> ThenGenerator
-> Generate Then Code
Use Shortcut
⌘
+ ,
)Change Properties
ThenGeneratorApp
UIKit
class and turn on/off switchDemo
Single
Multiline
Contribution Xcodegen Support
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.
References
Twice a month we will interview people behind open source businesses. We will talk about how they are building a business on top of open source projects.
We'll never share your email with anyone else.