Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

oursky/Redux

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
Pod
 
 
 
 
 
 
 
 
 
 
 
 

Redux

CI Status codecov.io Version License Platform

Redux is a swift implementation of redux.

A thorough walk through and description of the framework can be found at the official Redux repository: redux.

Features

  • Project scaffolding, includes basic redux structure and test cases
  • File templates
  • Static typed State
  • Handy functions for integrating with UIViewController, similar to react-redux

Getting Started

Quick Start from Project Template

Start with our project template

curl https://raw.githubusercontent.com/oursky/Redux-Project-Template/master/download | bash -s YOUR_PROJECT_NAME

Add to an existing project with CocoaPods

Add the following in Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod "Redux", "~> 0.1.0"

Then, run the following command

pod install

Install Xcode Redux File Templates

Run the following command

# if your XCode path is '/Applications/Xcode.app'
curl https://raw.githubusercontent.com/oursky/Redux-Project-Template/file-templates/install-template.sh | bash -s

# else
curl https://raw.githubusercontent.com/oursky/Redux-Project-Template/file-templates/install-template.sh | bash -s YOUR_XCODE_PATH

Then, you may open Xcode, go to File -> New -> File..., you should be able to find the file templates under Redux

See https://github.com/oursky/Redux-Project-Template/tree/file-templates

Try Example

git clone git@github.com:oursky/Redux.git
cd Redux
pod install --project-directory=Example
open Example/Redux.xcworkspace

Then you may run Redux-Example in XCode

Credit

Inspired from

License

Redux is available under the MIT license. See the LICENSE file for more info.