Download Latest Version 7.5.0 source code.zip (5.8 MB)
Email in envelope

Get an email when there's a new version of Spots

Home / 7.5.0
Name Modified Size InfoDownloads / Week
Parent folder
7.5.0 source code.tar.gz 2018-01-03 5.7 MB
7.5.0 source code.zip 2018-01-03 5.8 MB
README.md 2018-01-03 1.1 kB
Totals: 3 Items   11.4 MB 0

In this release we focused on improving the component focus delegate, making it even easier to both access and observe focused components and views.

The focus delegate now has a new property .focusedView. This is the view that is currently in focus, it is optional because there might not be any views selected. SpotsController has also been slightly changed, the ComponentFocusDelegate properties .focusedComponent and .focusedView are now dynamic so that you can easily observe them using key value observing.

Example

:::swift
observer = spotsController.observe(\.focusedView, options: [.new]) { (controller, value) in
    guard let view = value.newValue else {
        return
    }

    // Do something with the view.
}

The delegate methods related to focus updates on Component has also been improved and should be more reliable.

Merged pull requests: - Feature focused view and refactor focus delegate implementation #793 (zenangst)

Source: README.md, updated 2018-01-03