mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
Update RiotSwiftUI symbols to triple slash documentation style with function annotations.
This commit is contained in:
@@ -17,13 +17,11 @@
|
||||
import Foundation
|
||||
import Combine
|
||||
|
||||
/**
|
||||
Sams as `assign(to:on:)` but maintains a weak reference to object(Useful in cases where you want to pass self and not cause a retain cycle.)
|
||||
- SeeAlso:
|
||||
[assign(to:on:)](https://developer.apple.com/documentation/combine/just/assign(to:on:))
|
||||
*/
|
||||
@available(iOS 14.0, *)
|
||||
extension Publisher where Failure == Never {
|
||||
/// Sams as `assign(to:on:)` but maintains a weak reference to object
|
||||
///
|
||||
/// Useful in cases where you want to pass self and not cause a retain cycle.
|
||||
func weakAssign<T: AnyObject>(
|
||||
to keyPath: ReferenceWritableKeyPath<T, Output>,
|
||||
on object: T
|
||||
|
||||
Reference in New Issue
Block a user