ReactKit / SwiftState

Elegant state machine for Swift.
MIT License
903 stars 93 forks source link

How to use with a Vapor3 project #68

Closed dekhaus closed 5 years ago

dekhaus commented 5 years ago

Hi

I'm a Swift/Vapor newbie and need some help configuring my Vapor3 app to use SwiftState.

I support I should first ask if this library can even be used with Swift4/Vapor3 - can it ?

If it can - how do I configure my app to use it ?

Thanks Dave

dekhaus commented 5 years ago

No need to respond - I figured it out.

For anyone else - here's what you do ...

.package( url: "https://github.com/ReactKit/SwiftState.git", .branch("swift/4.0"))

.target(name: "App", dependencies: ["FluentPostgreSQL", "Vapor", "SwiftState"]

vapor update -y

That's it Dave