Skip to content

Change selected on View to selectionStyle #61

@wkiefer

Description

@wkiefer

selected has issues when you subclass an Objective-C NSView or UIView with an isSelected getter (example is NSTableRowView) and also conform it to View.

The synthesized swift name (isSelected) cannot coexist with the View conformance selected.

This seemed to work ok in Swift <3.2, but no longer works in Swift 3.2+.

We should move this to an emum of selectionStyle to match highlightStyle. This will also give us a bit more flexibility in types of selection state.

We should also give NSView and UIView classes that have a selected property easy free implementations of selectionState.

This is a breaking change.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions