diff --git a/TangemSdk/TangemSdk/UI/TangemSdkStyle.swift b/TangemSdk/TangemSdk/UI/TangemSdkStyle.swift index 38b869ac6..3b40f2f6b 100644 --- a/TangemSdk/TangemSdk/UI/TangemSdkStyle.swift +++ b/TangemSdk/TangemSdk/UI/TangemSdkStyle.swift @@ -75,10 +75,10 @@ public extension TangemSdkStyle { /// Generic card provided by the SDK case genericCard - /// A custom image with a name `name` that resides in an Asset Catalog in a `bundle` bundle. + /// A custom tag made out of an UIImage instance. /// The image can be shifted vertically from the standard position by specifying `verticalOffset`. /// Note that the width of the image will be limited to a certain size, while the height will be determined by the aspect ratio of the image. /// The value of the width can be found in ReadView.swift and is 210 points at the time of the writing. - case image(name: String, verticalOffset: Double, bundle: Bundle) + case image(uiImage: UIImage, verticalOffset: Double) } } diff --git a/TangemSdk/TangemSdk/UI/Views/Scan/ReadView.swift b/TangemSdk/TangemSdk/UI/Views/Scan/ReadView.swift index 73c2646cc..42eabc79e 100644 --- a/TangemSdk/TangemSdk/UI/Views/Scan/ReadView.swift +++ b/TangemSdk/TangemSdk/UI/Views/Scan/ReadView.swift @@ -45,8 +45,8 @@ struct ReadView: View { switch style.nfcTag { case .genericCard: CardView(cardColor: style.colors.cardColor, starsColor: style.colors.starsColor) - case .image(let name, let verticalOffset, let bundle): - Image(name, bundle: bundle) + case .image(let uiImage, let verticalOffset): + Image(uiImage: uiImage) .resizable() .aspectRatio(contentMode: .fit) .offset(y: verticalOffset)