Skip to content

Installation

Simon J Stuart edited this page Sep 5, 2022 · 1 revision

For Xcode Projects

Select File -> Swift Packages -> Add Package Dependency and enter https://github.com/Flowduino/EventDrivenSwift.git

Swift Package Manager Projects

You can use EventDrivenSwift as a Package Dependency in your own Packages' Package.swift file:

letpackage=Package(
//...
dependencies:[.package(
url:"https://github.com/Flowduino/EventDrivenSwift.git",.upToNextMajor(from:"5.0.0")),],
//...
)

From there, refer to EventDrivenSwift as a "target dependency" in any of your package's targets that need it.

targets:[.target(
name:"YourLibrary",
dependencies:["EventDrivenSwift",],
//...
),
//...
]

Once Installed...

You can then do import EventDrivenSwift in any .swift file that requires it.

Clone this wiki locally