Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: swift compiler warnings against deprecated 'class' #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Hanson/Bindable/Bindable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

/// Types conforming to the `Bindable` protocol can be updated with a new value when an event is published from an `EventPublisher`. Both ends of a binding should implement the `Bindable` protocol, as the receiving bindable will be set to the value of the source bindable when the binding is made.
public protocol Bindable: class {
public protocol Bindable: AnyObject {

/// The type of value of the bindable.
associatedtype Value
Expand Down
2 changes: 1 addition & 1 deletion Hanson/Event Publisher/EventPublisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

/// Types conforming to the `EventPublisher` protocol can publish and be observed for events.
public protocol EventPublisher: class {
public protocol EventPublisher: AnyObject {

/// The type of event that the event publisher publishes.
associatedtype Event
Expand Down