Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/87kangsw/ThenGenerator
Xcode Source Editor Extension for 'Then'
https://github.com/87kangsw/ThenGenerator
syntactic-sugar then xcode-source-editor-extension
Last synced: about 1 month ago
JSON representation
Xcode Source Editor Extension for 'Then'
- Host: GitHub
- URL: https://github.com/87kangsw/ThenGenerator
- Owner: 87kangsw
- License: mit
- Created: 2021-01-03T16:51:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-15T05:24:56.000Z (almost 3 years ago)
- Last Synced: 2024-08-01T23:32:45.595Z (4 months ago)
- Topics: syntactic-sugar, then, xcode-source-editor-extension
- Language: Swift
- Homepage:
- Size: 16.5 MB
- Stars: 20
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- open-source-mac-os-apps - ThenGenerator - Xcode Source Editor Extension for 'Then' ![swift_icon] (Applications / Utilities)
- open-source-mac-os-apps - ThenGenerator - Xcode Source Editor Extension for 'Then' ![swift_icon] (Applications / Extensions)
- awesome-swift-macos-apps - ThenGenerator - Xcode Source Editor Extension for 'Then' (Utilities / Text)
- awesome-swift-macos-apps - ThenGenerator - Xcode Source Editor Extension for 'Then' (Extensions / Text)
README
# ThenGenerator
## Overview
ThenGenerator is Xcode Source Editor Extension for [Then](https://github.com/devxoul/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
- [ViewGenerator](https://github.com/funzin/ViewGenerator)