Add AccountViewCell

pull/2/head
Michael Scoff 7 years ago
parent f2f681bd3c
commit b1c5042030
  1. 12
      Trust.xcodeproj/project.pbxproj
  2. 2
      Trust/Accounts/ViewControllers/AccountsViewController.swift
  3. 16
      Trust/Accounts/Views/AccountViewCell.swift

@ -53,6 +53,7 @@
293B8B451F70A20200356286 /* TransactionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 293B8B441F70A20200356286 /* TransactionViewCell.swift */; };
293E66421F8026F10052973D /* Block.swift in Sources */ = {isa = PBXBuildFile; fileRef = 293E66411F8026F10052973D /* Block.swift */; };
294FE5661F72442D00754F31 /* Address.swift in Sources */ = {isa = PBXBuildFile; fileRef = 294FE5651F72442D00754F31 /* Address.swift */; };
295247DF1F8326EF007FDC31 /* AccountViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 295247DE1F8326EF007FDC31 /* AccountViewCell.swift */; };
295A59381F71C1B90092F0FC /* AccountsCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 295A59371F71C1B90092F0FC /* AccountsCoordinator.swift */; };
296106BF1F7639250006164B /* FetchTransactionsRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 296106BE1F7639250006164B /* FetchTransactionsRequest.swift */; };
296106C21F76403A0006164B /* TokenViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 296106C11F76403A0006164B /* TokenViewCell.swift */; };
@ -201,6 +202,7 @@
293B8B441F70A20200356286 /* TransactionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionViewCell.swift; sourceTree = "<group>"; };
293E66411F8026F10052973D /* Block.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Block.swift; sourceTree = "<group>"; };
294FE5651F72442D00754F31 /* Address.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Address.swift; sourceTree = "<group>"; };
295247DE1F8326EF007FDC31 /* AccountViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountViewCell.swift; sourceTree = "<group>"; };
295A59371F71C1B90092F0FC /* AccountsCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountsCoordinator.swift; sourceTree = "<group>"; };
296106BE1F7639250006164B /* FetchTransactionsRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FetchTransactionsRequest.swift; sourceTree = "<group>"; };
296106C11F76403A0006164B /* TokenViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TokenViewCell.swift; sourceTree = "<group>"; };
@ -529,6 +531,7 @@
291F52BD1F6C873600B369AB /* Accounts */ = {
isa = PBXGroup;
children = (
295247DB1F8326C8007FDC31 /* Views */,
2977CAE71F7E0B87009682A0 /* ViewModels */,
2977CAE61F7E0B7C009682A0 /* ViewControllers */,
2977CAE51F7E0B73009682A0 /* Coordinators */,
@ -544,6 +547,14 @@
path = Ethplorer;
sourceTree = "<group>";
};
295247DB1F8326C8007FDC31 /* Views */ = {
isa = PBXGroup;
children = (
295247DE1F8326EF007FDC31 /* AccountViewCell.swift */,
);
path = Views;
sourceTree = "<group>";
};
296106BD1F76391B0006164B /* Etherscan */ = {
isa = PBXGroup;
children = (
@ -1375,6 +1386,7 @@
293B8B411F707F4600356286 /* TransactionViewModel.swift in Sources */,
29BB94951F6FC54C009B09CC /* EthereumUnit.swift in Sources */,
29A0E1871F706D0700BAAAED /* EthereumConverter.swift in Sources */,
295247DF1F8326EF007FDC31 /* AccountViewCell.swift in Sources */,
2912CD2D1F6A839700C6CBE3 /* CreateWalletViewController.swift in Sources */,
290FD8BB1F7BFE7400548896 /* GetBlockByNumberRequest.swift in Sources */,
291F52B71F6B870400B369AB /* CastError.swift in Sources */,

@ -68,7 +68,7 @@ class AccountsViewController: UITableViewController {
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let account = self.account(for: indexPath)
let cell = UITableViewCell(style: .default, reuseIdentifier: "cell")
let cell = AccountViewCell(style: .default, reuseIdentifier: AccountViewCell.identifier)
cell.textLabel?.text = account.address.address
return cell
}

@ -0,0 +1,16 @@
// Copyright SIX DAY LLC. All rights reserved.
import UIKit
class AccountViewCell: UITableViewCell {
static let identifier = "AccountViewCell"
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
Loading…
Cancel
Save