We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66a2a20 commit 2a76999Copy full SHA for 2a76999
Sources/UberRides/RideRequestButton.swift
@@ -27,7 +27,7 @@ import CoreLocation
27
import UberCore
28
29
/// A protocol used to response to Uber RideRequestButton events
30
-public protocol RideRequestButtonDelegate {
+public protocol RideRequestButtonDelegate: AnyObject {
31
/**
32
The button finished loading ride information successfully.
33
@@ -49,7 +49,7 @@ public class RideRequestButton: UberButton {
49
// MARK: Public Properties
50
51
/// Delegate is informed of events that occur with request button.
52
- public var delegate: RideRequestButtonDelegate?
+ public weak var delegate: RideRequestButtonDelegate?
53
54
/// The RideParameters object this button will use to make a request
55
public var rideParameters: RideParameters
0 commit comments