Giter Club home page Giter Club logo

xcodesnippet's Introduction

XcodeSnippet

Swift Package Manager

XcodeSnippet provides the ability to save or use the codeSnippet that you set up.

Snippet as Swift packages

The usage of XcodeSnippet is very similar to that of Snippet in traditional Xcode. Projects are defined as Swift Packages, all of which use the default format type-safe swift code.

import XcodeSnippet

struct SnippetEx: Snippet {
    var xcodeSnippet: [XcodeSnippet] = []
}

try snippetEx().install()

You can use it like this. XcodeSnipet is really simple, right?

Installation

XcodeSnippet was deployed as Swift Package Manager. Package to install in a project. Add as a dependent item within the swift manifest.

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/JiHoonAHN/XcodeSnippet.git", from: "0.1.1")
    ],
    ...
)

Then import the XcodeSnipet from the location you want to use.

import XcodeSnippet

XcodeSnippet also comes with command-line tools to easily create projects for easy project support.

$ git clone https://github.com/JiHoonAHN/XcodeSnippet.git
$ cd XcodeSnippet
$ make

Then run the instructions on how to use XcodeSnippet help.

Quick start

To start XcodeSnippet faster, clone this repository, install the command-line tool, and run make within the replicated folder.

$ git clone https://github.com/JiHoonAHN/XcodeSnippet.git
$ cd XcodeSnippet
$ make

Note: If you encounter an error while running make, ensure that you have your Command Line Tools location set from Xcode's preferences. It's in Preferences > Locations > Locations > Command Line Tools. The dropdown will be blank if it hasn't been set yet.

Then, create a new folder for your new Snippet project and simply run xcodeSnippet new within it to get started:

$ mkdir MySnippet
$ cd MySnippet
$ xcodeSnippet new

Finally, run open Package.swift to open up the project in Xcode to start making your snippet Setting!

License

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.