Swiftpack.co - clmntcrl/swidux-echo as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by clmntcrl.
clmntcrl/swidux-echo 0.2.0
Logger middleware for Swidux
⭐️ 0
🕓 5 years ago
.package(url: "https://github.com/clmntcrl/swidux-echo.git", from: "0.2.0")

SwiduxEcho

This is the first middleware built for Swidux. It's a simple logger which print action and updated Swidux's store in the console.

Usage

You just have to pass echo() into the Store init.

import Swidux
import SwiduxEcho

let store = Store<AppState>(
    initialState: AppState(),
    reducer: reducer,
    middlewares: [ echo() ]
)

Installation

Carthage

Add the following dependency to your Cartfile:

github "clmntcrl/swidux-echo" ~> 0.2

CocoaPods

Add the following pod to your Podfile:

pod 'SwiduxEcho', '~> 0.2'

SwiftPM

Add the package as dependency in your Package.swift:

dependencies: [
    .package(url: "https://github.com/clmntcrl/swidux-echo.git", from: "0.2.0"),
]

License

SwiduxEcho is released under the MIT license. See LICENSE for details.

GitHub

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

Dependencies

Release Notes

0.2.0
5 years ago
  • Use Swidux 1.0.0 and its new middleware architecture
  • Support package managers:
    • Carthage
    • CocoaPods
    • SwiftPM

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