Last active
March 10, 2020 22:20
-
-
Save hassanvfx/26e5ddaee6cd56a4836bb76ca95d378e to your computer and use it in GitHub Desktop.
Access LargeTitleView in swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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