Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing tabItemsCount from stored property to computed property #66

Merged
merged 1 commit into from Jun 1, 2017

Conversation

hiragram
Copy link
Contributor

@hiragram hiragram commented Jun 1, 2017

I prefer to change tabItemsCount to computed property, because didSet does not fire when the property was initialized. So open var tabItems: [(viewController: UIViewController, title: String)] = [] does not trigger didSet. tabItemsCount will have incorrect value if you make initial value nonempty.

@EndouMari
Copy link
Owner

Thanks!

@EndouMari EndouMari merged commit 959e589 into EndouMari:master Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants