class PdfAboveKeyboardSearchView: UITextField {
lazy var searchbar = UISearchBar()
lazy var _inputAccessoryView: UIView = {
return searchbar
let toolbar = UIToolbar()
toolbar.items = [.fixedSpace(10), UIBarButtonItem(customView: searchbar), .fixedSpace(10)]
toolbar.sizeToFit()
return toolbar
}()
}
In this case return gets removed on line 4 resulting in Expression resolves to an unused property
swiftformat version: 0.47.5
(I'm trying to figure out how to make the searchbar inside the input accessory toolbar fit the remaining size)
In this case
return
gets removed on line 4 resulting inExpression resolves to an unused property
swiftformat version: 0.47.5 (I'm trying to figure out how to make the searchbar inside the input accessory toolbar fit the remaining size)