Skip to content

Instantly share code, notes, and snippets.

@hassanvfx
Last active March 10, 2020 22:20
Show Gist options
  • Save hassanvfx/26e5ddaee6cd56a4836bb76ca95d378e to your computer and use it in GitHub Desktop.
Save hassanvfx/26e5ddaee6cd56a4836bb76ca95d378e to your computer and use it in GitHub Desktop.
Access LargeTitleView in swift
var largeTitleView:UIView{
if let navBarSubviews = navigationController?.navigationBar.subviews {
for subView in navBarSubviews where NSStringFromClass(type(of: subView)).contains("LargeTitle"){
return subView
}
}
assert(false, "A large title view is expected on viewDidAppear")
return UIView()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment