Skip to content

LLCFreedom-Space/fs-components

Swift Version License GitHub release (with filter) Read the Docs example workflow example workflow example workflow codecov

FS Components

Quick implementation of components.

Swift version

The latest version of FSComponents requires Swift 5.9 and MacOS v13 or later. You can download this version of the Swift binaries by following this link.

Usage

Swift Package Manager

Add dependencies using the version

Add the FSComponents package to the dependencies within your application’s Package.swift file. Substitute "x.x.x" with the latest FSComponents release.

.package(url: "https://github.com/LLCFreedom-Space/fs-components.git", from: "x.x.x")

Add ValidationComponents to your target's dependencies:

dependencies: [
    .product(name: "ValidationComponents", package: "fs-components"),
],

Import package

import ValidationComponents

Add dependencies using the branch

Add the FSComponents package to the dependencies within your application’s Package.swift file. Substitute "name branch" with the latest FSComponents release.

.package(url: "https://github.com/LLCFreedom-Space/fs-components.git", branch: "name branch")

Add ValidationComponents to your target's dependencies:

dependencies: [
    .product(name: "ValidationComponents", package: "fs-components"),
],

Import package

import ValidationComponents

Getting Started

An example of a method call from this library First you need to setup allowed hosts in field - allowedHosts

app.allowedHosts = ["first-host", "second-host"]

After you setup you need to call middleware in configuration

app.middleware.use(AllowedHostsMiddleware)

To access the methods that are in this library, you need to call the application, since this library is an extension to the application

Links

LLC Freedom Space – @LLCFreedomSpacesupport@freedomspace.company

Distributed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3. See LICENSE.md for more information.

GitHub

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages