Coder Social home page Coder Social logo

kabukit's People

Contributors

crexista avatar daichiro avatar ikaruby avatar kmhjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

daichiro kmhjs

kabukit's Issues

Create SceneGuard

Create SceneGuard in order to prevent to call SceneBase directly.

Add README.md

I have to add README.md and explain how to use KabuKit

rename `Frame` protocol

Scene based Frame because of swift term.
but, Frame is hard to understand.
So, rename Frame to SceneBase

SceneSequence Remodeling

Now, SceneSequence cannot stop and maybe leak when dispose sub sequence.
So, I have to remodel SceneSequence

  • When SceneSequence's leave is called, SceneSequence will be able to be disposed.
  • SceneSequence's type generics Context is useless. So, SceneSequence's type generics match with First Scene.
  • SceneSequence's 'startWith' method is too difficult to use. if context is not set, SceneSequence refer to self.context .

`guide(to:)` should not return nil?

example:

class ViewController: UIViewController, ActionScene, SceneLinkage {
  func guide(to destination: ViewController.Destination) -> SceneTransition<DestinationType.StageType>? {
    return nil  // Crash!
  }
...

guide should return non-optional value?

Destination.StageType is always UIViewController?

To create typealias StageType every view controller is redundant, I think.

public protocol SceneLinkage : SceneRouter {
    public func guide(to destination: Self.DestinationType) -> KabuKit.SceneTransition<Self.DestinationType.StageType>?
}

to

public protocol SceneLinkage : SceneRouter {
    public func guide(to destination: Self.DestinationType) -> KabuKit.SceneTransition<UIViewController>?
}

don't renew `scenario` when scene transits to new scene

PROBREM
Now, SceneOperation class regenerate scenario object every time when scene transition is happened.
Scenario is just transition logic.
Regenerating Scenario process is useless.

Solution
Define Transition class.
Not regeneratingScenario by SceneOperation, but generating Transition by Scenario.

Carthage installation failed

$ carthage bootstrap --platform iOS build failed.

*** Building scheme "KabuKit" in KabuKit.xcodeproj
** BUILD FAILED **


The following build commands failed:
        PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock Build/Intermediates/KabuKit.build/Release-iphoneos/KabuKit.build/Script-4D286322F4FD3E46231E45CD.sh
(1 failure)
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
A shell task (/usr/bin/xcrun xcodebuild -project /path/to/carthage/Carthage/Checkouts/KabuKit/KabuKit.xcodeproj -scheme KabuKit -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** BUILD FAILED **

I found KabuKit has two shared scheme for iOS platform

2017-01-13 20 33 35

Why KabuKit scheme are duplicated?
Shared KabuKit scheme conflicts with KabuKit-iOS scheme when fetching via Carthage.
To fix carthage build, delete or configure some settings shared KabuKit scheme.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.