mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 23:27:26 +01:00
36 lines
787 B
Swift
36 lines
787 B
Swift
//
|
|
// WalletInformation.swift
|
|
// BlueWalletWatch Extension
|
|
//
|
|
// Created by Marcos Rodriguez on 3/10/19.
|
|
// Copyright © 2019 Facebook. All rights reserved.
|
|
//
|
|
|
|
import WatchKit
|
|
|
|
class WalletInformation: NSObject {
|
|
|
|
@IBOutlet weak var walletBalanceLabel: WKInterfaceLabel!
|
|
@IBOutlet private weak var walletNameLabel: WKInterfaceLabel!
|
|
@IBOutlet private weak var walletGroup: WKInterfaceGroup!
|
|
static let identifier: String = "WalletInformation"
|
|
|
|
var name: String = "" {
|
|
willSet {
|
|
walletNameLabel.setText(newValue)
|
|
}
|
|
}
|
|
|
|
var balance: String = "" {
|
|
willSet {
|
|
walletBalanceLabel.setText(newValue)
|
|
}
|
|
}
|
|
|
|
var type: WalletGradient = .SegwitHD {
|
|
willSet {
|
|
walletGroup.setBackgroundImageNamed(newValue.imageString)
|
|
}
|
|
}
|
|
|
|
}
|