Our Position related libraries.
- TBD
- Xcode 12+
- If using M1: ```gem install --user-install ffi -- --enable-libffi-alloc
- **Jazzy** ```[sudo] gem install jazzy```
- **Brew** ```/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"```
- **Make** ```brew install make```
- **Swiftlint** ```brew install swiftlint```
## Style Guide
Following our style guide should:
* Make it easier to read and begin understanding the unfamiliar code.
* Make code easier to maintain.
* Reduce simple programmer errors.
* Reduce cognitive load while coding.
* Keep discussions on diffs focused on the code's logic rather than its style.
*Note that brevity is not a primary goal.*
[Official Style Guide] (https://github.com/virtualstores/ios-style-guide)
## Installation
####Using as a dependency
``` swift
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "YourTestProject",
dependencies: [
.package(url: "https://github.com/virtualstores/ios-position-kit.git", from: "0.0.1")
],
targets: [
.target(name: "YourTestProject", dependencies: ["VSPositionKit"])
]
)
And then import wherever needed: import VSPositionKit
- Using Xcode 11 go to File > Swift Packages > Add Package Dependency
- Paste the project URL: https://github.com/virtualstores/ios-position-kit.git
- Click on next and select the project target
If you have doubts, please, check the following links:
After successfully retrieved the package and added it to your project, just import VSPositionKit and you can get the full benefits of it.
import VSPositionKit
// Add some example here- Clone the repository
- Create your feature branch
- Open the
Package.swiftfile - Perform your changes, debug, run the unit tests
- Make sure that all the tests pass and there are no Xcode warnings or lint issues
- Open a pull request
We have added a few helpers to make your life easier:
make buildto build the project via command linemake testto test the project via command linemake docsto generate the documentation and output to theDocsfoldermake lintto execute Swiftlintmake fixlintto auto-correct Swiftlint warnings