Skip to content

Commit 2240e0b

Browse files
committed
Documents HasDelegate and HasDataSource.
1 parent a9d2604 commit 2240e0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

RxCocoa/Common/DelegateProxyType.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,12 @@ extension DelegateProxyType
242242
}
243243
}
244244

245+
/// Describes an object that has a delegate.
245246
public protocol HasDelegate: AnyObject {
247+
/// Delegate type
246248
associatedtype Delegate: AnyObject
249+
250+
/// Delegate
247251
var delegate: Delegate? { get set }
248252
}
249253

@@ -257,8 +261,12 @@ extension DelegateProxyType where ParentObject: HasDelegate, Self.Delegate == Pa
257261
}
258262
}
259263

264+
/// Describes an object that has a data source.
260265
public protocol HasDataSource: AnyObject {
266+
/// Data source type
261267
associatedtype DataSource: AnyObject
268+
269+
/// Data source
262270
var dataSource: DataSource? { get set }
263271
}
264272

0 commit comments

Comments
 (0)