Skip to content

Commit

Permalink
ui: add previewprovider for qrcodeview
Browse files Browse the repository at this point in the history
  • Loading branch information
reez authored Dec 29, 2023
1 parent 89c0f7b commit dc819cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/BitcoinUI/QRCodeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ public struct QRCodeView: View {
}
}

struct QRCodeView_Previews: PreviewProvider {
static var previews: some View {
QRCodeView(qrCodeType: .lightning("bitcoinqrcode"))
QRCodeView(qrCodeType: .lightning("lightingqrcode"))
}
}

#Preview {
QRCodeView(qrCodeType: .bitcoin("bitcoinqrcode"))
}
Expand Down

0 comments on commit dc819cf

Please sign in to comment.