1.16.0
What's Changed
Now you can use the setup parameter to preform any operations you need before the Application starts consuming the cache and publishing changes. This is useful for loading default dependencies your custom application might use.
class SomeApplication: Application {
static func someFunction() { /* no-op */ }
required init(setup: (Application) -> Void = { _ in }) {
super.init { application in
application.load(dependency: \.icloudStore)
setup(application)
}
}
}
Full Changelog: 1.15.0...1.16.0