From 62d04e88819c75f0e9a7b75b4f852f3cc38e94b0 Mon Sep 17 00:00:00 2001 From: Brian Sanders Date: Thu, 14 May 2020 07:22:25 -0400 Subject: [PATCH] Adds stored inputAccessoryView to ArticleSearchBar It should have been obvious that inputAccessoryView traverses the responder chain --- iOS/Article/ArticleSearchBar.swift | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/iOS/Article/ArticleSearchBar.swift b/iOS/Article/ArticleSearchBar.swift index 5ab827b2b..9bbfac79f 100644 --- a/iOS/Article/ArticleSearchBar.swift +++ b/iOS/Article/ArticleSearchBar.swift @@ -36,14 +36,11 @@ import UIKit weak var delegate: SearchBarDelegate? + private var _inputAccessoryView: UIView? override var inputAccessoryView: UIView? { - get { - searchField.inputAccessoryView - } - - set { - searchField.inputAccessoryView = newValue - } + get { _inputAccessoryView } + set { _inputAccessoryView = newValue } + } } override init(frame: CGRect) {