Skip to content

Commit

Permalink
IOS-3575 Renamed the type
Browse files Browse the repository at this point in the history
  • Loading branch information
megakoko committed May 5, 2023
1 parent e3d7b78 commit 15cfa9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions TangemSdk/TangemSdk/UI/TangemSdkStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class TangemSdkStyle: ObservableObject {
public var colors: Colors = .default
public var textSizes: TextSizes = .default
public var indicatorWidth: Float = 12
public var readViewTag: ReadViewTag = .genericCard
public var nfcTag: NFCTag = .genericCard

public static var `default`: TangemSdkStyle = .init()
}
Expand Down Expand Up @@ -71,7 +71,7 @@ public extension TangemSdkStyle {
@available(iOS 13.0, *)
public extension TangemSdkStyle {
/// Options for displaying different tags on the scanning screen
enum ReadViewTag {
enum NFCTag {
/// Generic card provided by the SDK
case genericCard

Expand Down
2 changes: 1 addition & 1 deletion TangemSdk/TangemSdk/UI/Views/Scan/ReadView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct ReadView: View {

@ViewBuilder
private var tagView: some View {
switch style.readViewTag {
switch style.nfcTag {
case .genericCard:
CardView(cardColor: style.colors.cardColor, starsColor: style.colors.starsColor)
case .image(let name, let verticalOffset, let bundle):
Expand Down

0 comments on commit 15cfa9a

Please sign in to comment.