Skip to content

1.16.0

Compare
Choose a tag to compare
@0xLeif 0xLeif released this 10 Mar 17:17
· 23 commits to main since this release
6d47c27

What's Changed

  • Add setup parameter for Application by @0xLeif in #99

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