Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vkuznet/myfirstswiftlibrary


https://github.com/vkuznet/myfirstswiftlibrary

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

### MyFirstSwiftLibrary
This is a demo project how to create swift library. Here are the steps:

```
# create a new empty git repository and clone it
git clone https://github.com/vkuznet/MyFirstSwiftLibrary
cd MyFirstSwiftLibrary

# initialize your poject as swift library
swift package init --type library

# change Package.swift and code (see examples in this repo)

# push changes to git and tag it
git commit -m "First commit" -a
git tag 1.0.0

# build library code
swift build

# clean-up your build area
swift package clean
```
Now this library is ready to be used, please see
[MyFirstSwiftApp](https://github.com/vkuznet/MyFirstSwiftApp)
how to build your first app and use this library