Skip to content

Commit 46250ac

Browse files
committed
Update protocol conformance to AnyObject
1 parent d3c8df5 commit 46250ac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/MotionMachine.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import QuartzCore
3333
/**
3434
* This protocol declares methods and properties that must be adopted by custom motion classes in order to participate in the MotionMachine ecosystem. All standard MotionMachine motion classes conform to this protocol.
3535
*/
36-
public protocol Moveable: class {
36+
public protocol Moveable: AnyObject {
3737

3838
// Controlling a motion
3939

@@ -133,7 +133,7 @@ public protocol MoveableCollection {
133133

134134
// MARK: PropertyCollection protocol
135135

136-
public protocol PropertyCollection: class {
136+
public protocol PropertyCollection: AnyObject {
137137

138138
/**
139139
* A collection of `PropertyData` instances.
@@ -181,7 +181,7 @@ public protocol Additive: PropertyCollection {
181181
/**
182182
* This protocol defines methods that are called on delegate objects which listen for update beats from a `Tempo` object.
183183
*/
184-
public protocol TempoDelegate: class {
184+
public protocol TempoDelegate: AnyObject {
185185

186186
/**
187187
* Sends an update beat that should prompt motion classes to recalculate movement values.
@@ -219,7 +219,7 @@ public protocol TempoDriven: TempoDelegate {
219219
// MARK: MotionUpdateDelegate protocol
220220

221221
/// This delegate protocol defines a status update method in order for `Moveable` objects to communicate with one another. MotionMachine collection classes use this protocol method to keep track of child motion status changes. Any custom `Moveable` classes must send `MoveableStatus` status updates using this protocol.
222-
public protocol MotionUpdateDelegate: class {
222+
public protocol MotionUpdateDelegate: AnyObject {
223223

224224
/**
225225
* This delegate method is called when a `Moveable` object has updated its status.

Sources/PropertyData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import Foundation
2828

2929
/// Provides delegate updates when property values change.
30-
public protocol PropertyDataDelegate: class {
30+
public protocol PropertyDataDelegate: AnyObject {
3131

3232
/// Called when the `start` property of a PropertyData instance is updated.
3333
func didUpdate(_ startValue: Double)

0 commit comments

Comments
 (0)