CombineWrapper
public struct CombineWrapper : WebcomWrapper, Equatable, CustomStringConvertible, CustomDebugStringConvertible
The type that wraps AuthenticationDetails
in order to enrich it with a Combine-based API.
See also the documentation section of WebcomWrapper
for the corresponding wrapped type.
To use this type, import the following dependency in your code:
import WebcomCombine
-
Declaration
Swift
public let wrapped: AuthenticationDetails
-
Downloads the avatar representing the user.
This method downloads the content from
avatarURL
.Declaration
Swift
public func downloadAvatar(session: URLSession? = nil) -> WebcomFuture<UIImage>
Parameters
session
The session to use to download the avatar. When
nil
,Webcom.defaultSession
is used.Return Value
A future with the downloaded avatar.
-
downloadAvatar(session:
Asynchronous) Declaration
Swift
public func downloadAvatar(session: URLSession? = nil) async throws -> UIImage