Swiftpack.co - virtualstores/ios-foundation as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by virtualstores.
virtualstores/ios-foundation 1.0.5
Virtual Stores Foundation framework, has no dependency to any other framework and should encapsulate common code
⭐️ 0
🕓 6 weeks ago
iOS macOS watchOS
.package(url: "https://github.com/virtualstores/ios-foundation.git", from: "1.0.5")

Virtual Stores Foundation

Our core libraries (has no dependencies to any other frameworks but Apple's).

Swift 5.5 Platforms Platforms Swift Package Manager compatible

Features

  • ☑ TBD

Requirements

  • 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-foundation.git", from: "0.0.1")
  ],
  targets: [
    .target(name: "YourTestProject", dependencies: ["VSFoundation"])
  ]
)

And then import wherever needed: import VSFoundation

Adding it to an existent iOS Project via Swift Package Manager

  1. Using Xcode 11 go to File > Swift Packages > Add Package Dependency
  2. Paste the project URL: https://github.com/virtualstores/ios-foundation.git
  3. Click on next and select the project target

If you have doubts, please, check the following links:

How to use

Creating Swift Packages

After successfully retrieved the package and added it to your project, just import VSFoundation and you can get the full benefits of it.

Usage example

import VSFoundation

// Add some example here

Contributing to the library

  1. Clone the repository
  2. Create your feature branch
  3. Open the Package.swift file
  4. Perform your changes, debug, run the unit tests
  5. Make sure that all the tests pass and there are no Xcode warnings or lint issues
  6. Open a pull request

We have added a few helpers to make your life easier:

  1. make build to build the project via command line
  2. make test to test the project via command line
  3. make jazzy to generate the documentation and output to the Docs folder
  4. make lint to execute Swiftlint
  5. make fixlint to auto-correct Swiftlint warnings

GitHub

link
Stars: 0
Last commit: 6 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.0.5
6 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics