All Projects → Bouke → Swiftinitializergenerator

Bouke / Swiftinitializergenerator

Licence: mit
Xcode Source Code Extension to Generate Swift Initializers

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Swiftinitializergenerator

Codemaker
A idea-plugin for Java/Scala, support custom code template.
Stars: ✭ 440 (-38.72%)
Mutual labels:  code-generator
Generator
A code generator for MyBatis.
Stars: ✭ 4,847 (+575.07%)
Mutual labels:  code-generator
Flutter gen
The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
Stars: ✭ 583 (-18.8%)
Mutual labels:  code-generator
Jooq
jOOQ is the best way to write SQL in Java
Stars: ✭ 4,695 (+553.9%)
Mutual labels:  code-generator
Sbt Buildinfo
I know this because build.sbt knows this.
Stars: ✭ 486 (-32.31%)
Mutual labels:  code-generator
Swiftmockgeneratorforxcode
An Xcode extension (plugin) to generate Swift test doubles automatically.
Stars: ✭ 522 (-27.3%)
Mutual labels:  xcode-extension
Python Betterproto
Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC
Stars: ✭ 412 (-42.62%)
Mutual labels:  code-generator
Freezed
Code generation for immutable classes that has a simple syntax/API without compromising on the features.
Stars: ✭ 667 (-7.1%)
Mutual labels:  code-generator
Hsweb3 Demo
hsweb 3.0版本演示,ui基于miniui,集成hsweb全家桶的web端演示,集成代码生成器
Stars: ✭ 490 (-31.75%)
Mutual labels:  code-generator
Easycode
基于IntelliJ IDEA开发的代码生成插件,支持自定义任意模板(Java,html,js,xml)。只要是与数据库相关的代码都可以通过自定义模板来生成。支持数据库类型与java类型映射关系配置。支持同时生成生成多张表的代码。每张表有独立的配置信息。完全的个性化定义,规则由你设置。
Stars: ✭ 552 (-23.12%)
Mutual labels:  code-generator
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 (-34.54%)
Mutual labels:  xcode-extension
Laravel Code Generator
An intelligent code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages and/or form-requests! It is extremely flexible and customizable to cover many on the use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.
Stars: ✭ 485 (-32.45%)
Mutual labels:  code-generator
React View
React View is an interactive playground, documentation and code generator for your components.
Stars: ✭ 544 (-24.23%)
Mutual labels:  code-generator
Smartcode
SmartCode = IDataSource -> IBuildTask -> IOutput => Build Everything!!!
Stars: ✭ 464 (-35.38%)
Mutual labels:  code-generator
Colfer
binary serialization format
Stars: ✭ 597 (-16.85%)
Mutual labels:  code-generator
Il2cpp
A MSIL/C# to C++ converter. Faster than CoreCLR with low memory overhead.(已弃坑.C#是个好语言,然而.NET不是一个干净的平台)
Stars: ✭ 423 (-41.09%)
Mutual labels:  code-generator
Playalways
Create Xcode playgrounds from your menu bar
Stars: ✭ 515 (-28.27%)
Mutual labels:  xcode-extension
Zxw.framework.netcore
基于EF Core的Code First模式的DotNetCore快速开发框架,其中包括DBContext、IOC组件autofac和AspectCore.Injector、代码生成器(也支持DB First)、基于AspectCore的memcache和Redis缓存组件,以及基于ICanPay的支付库和一些日常用的方法和扩展,比如批量插入、更新、删除以及触发器支持,当然还有demo。欢迎提交各种建议、意见和pr~
Stars: ✭ 691 (-3.76%)
Mutual labels:  code-generator
Felix
The Felix Programming Language
Stars: ✭ 609 (-15.18%)
Mutual labels:  code-generator
Rust Embed
Rust Macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
Stars: ✭ 548 (-23.68%)
Mutual labels:  code-generator

Swift Initializer Generator

This Xcode Source Code Extension will generate a Swift initializer based on the lines you've selected. Handy if you made a struct public and now you have to provide the initializer implementation yourself.

Usage

Select the lines with the attributes that should be included in the initializer. See below; > is the start of the selection and < is the end of the selection.

struct MyStruct {
>    public var a: String
    public var b: Int<
}

Run the extension's "Generate Swift Initializer". Voila! The code above is modified to:

struct MyStruct {
    public var a: String
    public var b: Int
    public init(a: String, b: Int) {
        self.a = a
        self.b = b
    }
}

Demo

Installation

  1. On OS X 10.11 El Capitan, run the following command and restart your Mac:

     sudo /usr/libexec/xpccachectl
    
  2. Open SwiftInitializerGenerator.xcodeproj

  3. Enable target signing for both the Application and the Source Code Extension using your own developer ID

  4. Product > Archive

  5. Right click archive > Show in Finder

  6. Right click archive > Show Package Contents

  7. Drag Swift Initializer Generator.app to your Applications folder

  8. Run Swift Initializer Generator.app and exit again.

  9. Go to System Preferences -> Extensions -> Xcode Source Editor and enable the extension

  10. The menu-item should now be available from Xcode's Editor menu.

Known limitations

It will only parse attributes defined like (open|public|fileprivate|private|internal) [weak] (var|let) NAME: TYPE.

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].