Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 797 Bytes

LoadingImage.md

File metadata and controls

43 lines (28 loc) · 797 Bytes

LoadingImage

@available(iOS 9.0, *) public class LoadingImage: UIView

Inheritance

UIView

Initializers

init(url:loadingTint:onErrorLoading:onCompletedLoading:)

public init(url: URL? = nil, loadingTint: UIColor? = nil, onErrorLoading: ((LoadingImage?, Error?) -> Void)? = nil, onCompletedLoading: ((UIImage?) -> Void)? = nil)

Methods

contentMode(_:)

@discardableResult public func contentMode(_ mode: UIView.ContentMode) -> Self

onImageLoaded(_:)

@discardableResult public func onImageLoaded(_ handler: @escaping (UIImage?) -> Void) -> Self

load(url:)

@discardableResult public func load(url: URL?) -> Self

update(image:)

public func update(image: UIImage)