All Projects → sftnhrd → sample-generator

sftnhrd / sample-generator

Licence: other
Xcode Source Editor Extension to generate Swift model samples

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to sample-generator

kube-code-generator
Kubernetes code generator docker image
Stars: ✭ 60 (+215.79%)
Mutual labels:  code-generation
nmodl
Code Generation Framework For NEURON MODeling Language
Stars: ✭ 42 (+121.05%)
Mutual labels:  code-generation
typed-astunparse
Python 3 AST unparser with type comments support.
Stars: ✭ 27 (+42.11%)
Mutual labels:  code-generation
EasyEE-Auto
EasyEE 自动化代码生成器。EasyEE Automated code generator.
Stars: ✭ 39 (+105.26%)
Mutual labels:  code-generation
islpy
Python wrapper for isl, an integer set library
Stars: ✭ 58 (+205.26%)
Mutual labels:  code-generation
AUXify
Introduces macro/meta annotations @ aux, @ self, @ instance, @ apply, @ delegated, @ syntax and String-based type class LabelledGeneric
Stars: ✭ 25 (+31.58%)
Mutual labels:  code-generation
Python3Generator
A toolkit to generate Python 3 source code from Pharo.
Stars: ✭ 25 (+31.58%)
Mutual labels:  code-generation
Rubicon
Swift parser + mock generator
Stars: ✭ 42 (+121.05%)
Mutual labels:  xcode-extension
tiles
Programmatic code generation
Stars: ✭ 78 (+310.53%)
Mutual labels:  code-generation
fling
A fluent API generator
Stars: ✭ 20 (+5.26%)
Mutual labels:  code-generation
qp-arduino
QP real-time embedded frameworks/RTOS for Arduino (AVR and SAM)
Stars: ✭ 37 (+94.74%)
Mutual labels:  code-generation
kobby
Kobby is a codegen plugin of Kotlin DSL Client by GraphQL schema. The generated DSL supports execution of complex GraphQL queries, mutation and subscriptions in Kotlin with syntax similar to native GraphQL syntax.
Stars: ✭ 52 (+173.68%)
Mutual labels:  code-generation
toast
Plugin-driven CLI utility for code generation using Go source as IDL
Stars: ✭ 52 (+173.68%)
Mutual labels:  code-generation
gamma
An Eclipse-based modeling framework for the component-based design and analysis of reactive systems
Stars: ✭ 21 (+10.53%)
Mutual labels:  code-generation
designto-code
Design to code engine. A design ✌️ code standard. Supports React, Flutter and more.
Stars: ✭ 87 (+357.89%)
Mutual labels:  code-generation
dynamic.yaml
DEPRECATED: YAML-based data transformations
Stars: ✭ 14 (-26.32%)
Mutual labels:  code-generation
Beef
Business Entity Execution Framework
Stars: ✭ 95 (+400%)
Mutual labels:  code-generation
cscg
Code Generation as a Dual Task of Code Summarization.
Stars: ✭ 28 (+47.37%)
Mutual labels:  code-generation
qvcodefriend.github.io
Develop Xcode Extensions with JavaScript
Stars: ✭ 19 (+0%)
Mutual labels:  xcode-extension
FSharpWrap
Utility that automatically generates F# modules and functions based on your F# project file's references
Stars: ✭ 14 (-26.32%)
Mutual labels:  code-generation

Sample Generator

Sample — object instance with fake data used for testing. This Xcode Source Editor Extension will generate Swift samples based on object declarations. Handy if you have a rather complex model type with nested structs and you have to write a lot of boilerplate code.

Usage

Open a file with models that should have samples

struct Model {

    enum Variant {
        case first
        case second
    }

    struct Nested {
        let identifier: String
        let amount: Int
    }

    let identifier: String
    let name: String
    let nested: Nested
    let variant: Variant
}

Run the extension's Generate and all the samples will be generated. All you need now is to fill samples with default values

Demo

Installation

  1. Open SampleGenerator.xcodeproj
  2. Enable target signing for both the Application and the Source Editor Extension using your own developer ID
  3. Product > Archive
  4. Right click archive > Show in Finder
  5. Right click archive > Show Package Contents
  6. Drag SampleGenerator.app to your Applications folder
  7. Run SampleGenerator.app
  8. Go to System Preferences -> Extensions -> Xcode Source Editor and enable the extension
  9. The menu item should now be available from Xcode's Editor menu
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].