ENMBadgedBarButtonItem-Swift
ENMBadgedBarButtonItem-Swift copied to clipboard
Update BadgedBarButtonItem.swift
Fixes missing opacity and frame when badge was "removed".
When a badge is removed (opacity is animated to zero) the opacity is net resetted to 1 and the frame is not correct, because it never gets removed from it's superview and therefore animateBadgeValueUpdate() is called in this case.