TImage
persello edited this page May 17, 2021
·
7 revisions
A remote image in the form of a SwiftUI View
.
@available(iOS 14.0, macOS 11, tvOS 14.0, *)
public struct TImage: View, Equatable
Equatable
, View
Creates a new instance of a Telescope TImage
.
public init(_ remoteImage: RemoteImage?)
- remoteImage: The remote image reference.
The content and behavior of the view.
public var body: some View
Makes the TImage
fit into its parent. Default behaviour is fill.
public func scaledToFit() -> TImage
A new fitted TImage
.
Hides the progress view while loading.
public func hideProgressView() -> TImage
A TImage
without ProgressView
Makes the current image resizable.
public func resizable() -> TImage
A resizable TImage
.
Adds an error placeholder view.
public func placeholder<Placeholder: View>(@ViewBuilder _ placeholder: @escaping () -> Placeholder) -> TImage
- placeholder: The placeholder view.
A TImage
with the specified placeholder.
public static func == (lhs: TImage, rhs: TImage) -> Bool
Generated at 2021-05-23T08:51:00+0000 using swift-doc 1.0.0-beta.6.