Home How to change position of MDCTextField in MDCAppBar's titleView?
Reply: 0

How to change position of MDCTextField in MDCAppBar's titleView?

tkul
1#
tkul Published in 2017-12-07 18:57:59Z

I have successfully added textField to navigationBar of MDCAppBar. But now it appears to be lower than it is desired. My code:

let searchTextField = MDCTextField()
searchTextField.placeholder = "Search"
appBar.navigationBar.titleView = searchTextField

Result

I also tried to specify the frame of textfield, but the outcome is the same.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.29886 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO