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

make badge configuration order in-depended #21

Open
philippb opened this issue Mar 5, 2016 · 0 comments
Open

make badge configuration order in-depended #21

philippb opened this issue Mar 5, 2016 · 0 comments

Comments

@philippb
Copy link

philippb commented Mar 5, 2016

Right now the badge looks different depending on when it's configured.

The configuration is only valid when applied after the badge count is set. The order should not matter.

        self.settingsBtn.badgeValue = "\(count)"

        let x = self.settingsBtn.badgeOriginX
        let y = self.settingsBtn.badgeOriginY

        self.settingsBtn.badgeOriginX = x - 10
        self.settingsBtn.badgeOriginY = y + 3
        self.settingsBtn.badgeFont = UIFont.systemFontOfSize(10)
        self.settingsBtn.badgePadding = 4

is not the same as

        let x = self.settingsBtn.badgeOriginX
        let y = self.settingsBtn.badgeOriginY

        self.settingsBtn.badgeOriginX = x - 10
        self.settingsBtn.badgeOriginY = y + 3
        self.settingsBtn.badgeFont = UIFont.systemFontOfSize(10)
        self.settingsBtn.badgePadding = 4

        self.settingsBtn.badgeValue = "\(count)"
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

No branches or pull requests

1 participant