ThenGenerator

Xcode Source Editor Extension for 'Then'

Stars
19
Forks
4
Open issues
0
Closed issues
1
Last release
over 3 years ago
Last commit
over 2 years ago
Watchers
19
Total releases
2
Total commits
64
Open PRs
0
Closed PRs
7
Repo URL
Platform
License
mit
Category
Usecase
Technology
Swift
Offers premium version?
NO
Proprietary?
NO
About

ThenGenerator

Overview

ThenGenerator is Xcode Source Editor Extension for Then

Install

Enviroment

  • macOS 11.0 (Big Sur)
  • SwiftUI
  • UserDefaults

How to use

  1. Install ThenGenerator

  2. Enable Xcode Source Editor

    • -> System Preferences -> Extensions
    • Check ThenGenerator
  3. Input variable name for Generate code. Without UI prefix.

  4. If you want to create a UILabel class with variable name repoNameLabel, you input text VariableName + Label

  5. Select variable name

  6. Editor -> ThenGenerator -> Generate Then Code

Use Shortcut

  1. Xcode Preferences.. ( + ,)
  2. Key Bindings
  3. Search ThenGenerator
  4. Add Shortcut

Change Properties

  1. Launch ThenGeneratorApp
  2. Find UIKit class 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.

References

Alternative Projects
No projects found

Subscribe to Open Source Businees Newsletter

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.