Created
March 28, 2024 12:27
-
-
Save ertembiyik/26c9d52acd571aae03c2791ca84bee04 to your computer and use it in GitHub Desktop.
5+ items UITabBarController
This file contains hidden or 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
final class CustomTabBarController: UITabBarController { | |
private var customMaxItems: CGFloat { | |
get { | |
self.value(forKey: "_customMaxItems") as! CGFloat | |
} | |
set { | |
self.setValue("_customMaxItems", forKey: key) | |
} | |
} | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
self.customMaxItems = 10 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment