Код: Выделить всё
let toolbar = UIToolbar()
let height = tabBarController?.tabBar.frame.height
toolbar.frame = CGRect(x: 0, y: view.bounds.height - height, width: view.bounds.width, height: height)
toolbar.autoresizingMask = [.flexibleWidth, .flexibleTopMargin]
view.addSubview(toolbar)
< /code>
Кнопки слишком близки к домашнему индикатору
< /p>
Подробнее здесь: [url]https://stackoverflow.com/questions/48236375/custom-uitoolbar-too-close-to-the-home-indicator-on-iphone-x[/url]