Use unowned for paste and qr action

pull/4/head
Viktor Radchenko 7 years ago
parent 5a1af0000d
commit 98dcf3aaa1
  1. 4
      Trust/Tokens/ViewControllers/NewTokenViewController.swift
  2. 4
      Trust/Transfer/ViewControllers/SendViewController.swift

@ -41,8 +41,8 @@ class NewTokenViewController: FormViewController {
title = viewModel.title title = viewModel.title
let recipientRightView = FieldAppereance.addressFieldRightView( let recipientRightView = FieldAppereance.addressFieldRightView(
pasteAction: { self.pasteAction() }, pasteAction: { [unowned self] in self.pasteAction() },
qrAction: { self.openReader() } qrAction: { [unowned self] in self.openReader() }
) )
form = Section() form = Section()

@ -78,8 +78,8 @@ class SendViewController: FormViewController {
view.backgroundColor = viewModel.backgroundColor view.backgroundColor = viewModel.backgroundColor
let recipientRightView = FieldAppereance.addressFieldRightView( let recipientRightView = FieldAppereance.addressFieldRightView(
pasteAction: { self.pasteAction() }, pasteAction: { [unowned self] in self.pasteAction() },
qrAction: { self.openReader() } qrAction: { [unowned self] in self.openReader() }
) )
let maxButton = Button(size: .normal, style: .borderless) let maxButton = Button(size: .normal, style: .borderless)

Loading…
Cancel
Save