Use of R in TicketsViewModel

pull/37/head
Oguzhan Gungor 7 years ago
parent 824c569eec
commit 4d2851b776
  1. 8
      Trust/Tokens/ViewModels/TicketsViewModel.swift
  2. 2
      Trust/Tokens/Views/TicketView.xib

@ -48,18 +48,22 @@ struct TicketsViewModel {
return 90
}
var title: String {
return "Use Token"
}
func ticketCellPressed(for indexPath: IndexPath) -> Bool {
return indexPath.section == 1
}
private func summaryCell(for tableView: UITableView, indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "StormBirdTokenSummaryTableViewCell", for: indexPath) as! StormBirdTokenSummaryTableViewCell
let cell = tableView.dequeueReusableCell(withIdentifier: R.reuseIdentifier.stormBirdTokenSummaryTableViewCell, for: indexPath)!
cell.configure(for: token)
return cell
}
private func ticketCell(for tableView: UITableView, indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "TicketCell", for: indexPath) as! TicketTableViewCell
let cell = tableView.dequeueReusableCell(withIdentifier: R.reuseIdentifier.ticketCell, for: indexPath)!
let ticketHolder = item(for: indexPath)
cell.configure(ticketHolder: ticketHolder)
return cell

@ -94,7 +94,7 @@
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<point key="canvasLocation" x="66.5" y="64.5"/>
<point key="canvasLocation" x="-96" y="91"/>
</view>
</objects>
</document>

Loading…
Cancel
Save