All Projects → funzin → ViewGenerator

funzin / ViewGenerator

Licence: MIT license
⚒ ViewGenerator generates view code from variable name automatically in iOS development

Programming Languages

swift
15916 projects
shell
77523 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to ViewGenerator

Xbookmark
Bookmark Plugin for Xcode 8.x and 7.x
Stars: ✭ 72 (-4%)
Mutual labels:  xcode-plugin, xcode-extension
Xcode developer disk images
Stars: ✭ 125 (+66.67%)
Mutual labels:  xcode-plugin, xcode-extension
Xgist
Xcode extension to send code to GitHub's Gist
Stars: ✭ 75 (+0%)
Mutual labels:  xcode-plugin, xcode-extension
Import
Xcode extension for adding imports from anywhere in the code ☝️
Stars: ✭ 818 (+990.67%)
Mutual labels:  xcode-plugin, xcode-extension
Awesome Xcode Extensions
Awesome native Xcode extensions.
Stars: ✭ 2,628 (+3404%)
Mutual labels:  xcode-plugin, xcode-extension
Linessorter Xcode Extension
Xcode Extension that helps you keep your import statements and long code lists organized and uniform
Stars: ✭ 54 (-28%)
Mutual labels:  xcode-plugin, xcode-extension
Swimat
An Xcode formatter plug-in to format your swift code.
Stars: ✭ 1,388 (+1750.67%)
Mutual labels:  xcode-plugin, xcode-extension
AMEGetterMaker
A lazyload getter maker without resign for Xcode
Stars: ✭ 42 (-44%)
Mutual labels:  xcode-plugin, xcode-extension
Linex
Feature packed Xcode extension
Stars: ✭ 210 (+180%)
Mutual labels:  xcode-plugin, xcode-extension
Xcodeequatablegenerator
Xcode 8 Source Code Extension will generate conformance to Swift Equatable protocol based on type and fields selection.
Stars: ✭ 188 (+150.67%)
Mutual labels:  xcode-plugin, xcode-extension
Swiftmockgeneratorforxcode
An Xcode extension (plugin) to generate Swift test doubles automatically.
Stars: ✭ 522 (+596%)
Mutual labels:  xcode-plugin, xcode-extension
TrickerX
An Xcode9+ Extension which make CodingKeys automatically.
Stars: ✭ 90 (+20%)
Mutual labels:  xcode-plugin, xcode-extension
Swiftai
SwiftAI, write Swift code smart. SwiftAI can generate Model class from JSON now. Codable and HandyJSON is supported. More features will be add.
Stars: ✭ 470 (+526.67%)
Mutual labels:  xcode-plugin, xcode-extension
Codegenerator
A Xcode plugin for generate Objectice-C code.
Stars: ✭ 63 (-16%)
Mutual labels:  xcode-plugin, xcode-extension
Xalign
An amazing Xcode Source Editor extension to align regular code. It can align Xnything in any way you want.
Stars: ✭ 2,898 (+3764%)
Mutual labels:  xcode-plugin, xcode-extension
Snowonder
🔮 Magical import declarations formatter for Xcode
Stars: ✭ 100 (+33.33%)
Mutual labels:  xcode-plugin, xcode-extension
jdk8u-xcode10
How to compile JDK 8u with Xcode 9, 10, 11 or 12 on macOS. Also with Shenandoah and JavaFX
Stars: ✭ 34 (-54.67%)
Mutual labels:  xcode11, xcode10
Nef Plugin
🔌 an Xcode extension to use nef features easily
Stars: ✭ 144 (+92%)
Mutual labels:  xcode-plugin, xcode-extension
MacApp
网上整理Mac相关的好用应用
Stars: ✭ 35 (-53.33%)
Mutual labels:  mac, macapp
Pragmatic
⚙An Xcode Source Editor extension for simplifying common pragma driven tasks
Stars: ✭ 24 (-68%)
Mutual labels:  xcode-plugin, xcode-extension

ViewGenerator

Platform Language License License

Overview

ViewGenerator generates view code from variable name automatically when you create view by code in iOS development

Download

Environment

  • Xcode 10.3 or greater
  • Swift 5.0 or greator

Demo

Install

  1. Install ViewGenerator from AppStore

  2. Enable ViewGenerator

    1. System PreferencesExtensions
    2. Switch on Xcode Source Editor checkbox

Usage

  1. Input variable name
    Important : variable name must be included class name without UI as suffix. (e.g. hogeView, hogeLabel, etc.)
    Please check Support View List bellow
  2. Select variable name
  3. EditorViewGeneratorGenerate View Code

  1. Generated

Recommend

I strongly recommend that you register Generate View Code Command to shortcut

  1. Xcode Preferences → KeyBindings
  2. Input ViewGenerator in Search
  3. Register shortcut

Usage Example

Multiple variables

GIF
select

Single Variable

GIF
not_select
select

Supplement

Default access modifier is private . if you change access modifier, open viewgenerator app and then select access modifier that you want to select

Example

For example, if variable name prefix is hoge, it is generated as bellow

hogeView

private let hogeView: UIView = {
    let hogeView = UIView(frame: .zero)
    hogeView.translatesAutoresizingMaskIntoConstraints = false
    return hogeView
}()

hogeButton

private let hogeButton: UIButton = {
    let hogeButton = UIButton(frame: .zero)
    hogeButton.translatesAutoresizingMaskIntoConstraints = false
    return hogeButton
}()
hogeTableView
private let hogeTableView: UITableView = {
    let hogeTableView = UITableView(frame: .zero)
    hogeTableView.translatesAutoresizingMaskIntoConstraints = false
    return hogeTableView
}()
hogehoge
private let hogehoge: _InputTypeName_ = {
    let hogehoge = _InputTypeName_(frame: .zero)
    hogehoge.translatesAutoresizingMaskIntoConstraints = false
    return hogehoge
}()

Support View List

View
UISwitch
UIActivityIndicatorView
UIButton
UICollectionView
UIControl
UIDatePicker
UIImageView
UILabel
UINavigationBar
UIPageControl
UIPickerView
UIProgressView
UIScrollView
UISearchBar
UISegmentedControl
UISlider
UIStackView
UIStepper
UITabBar
UITableView
UITextField
UITextView
UIToolbar
UIView
UIVisualEffectView

If you input variable name that doesn't correspond to the support view list, type name is input as _InputTypeName_ automatically.

Contact

If you discover problem or have opinions, please let me know through Github issues💁‍♂️

Author

funzin

License

ViewGenerator is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].