[x] Public init(frame:) in order to overwrite badge appearance
[x] Do not force unwrap iconView
[x] Do not create instance of RAMBadge if iconView does not exist (Result will be tabBarItem will have instance of RAMBadge but will not be added as subview.)
[x] Remove unused numberLabelUILabel
Discussion
Using convenience init instead of class func initialiser for RAMBadge (RAMBadge.badge() -> RAMBadge())
Scope
init(frame:)
in order to overwritebadge
appearanceiconView
RAMBadge
ificonView
does not exist (Result will betabBarItem
will have instance ofRAMBadge
but will not be added as subview.)numberLabel
UILabel
Discussion
convenience init
instead of class func initialiser forRAMBadge
(RAMBadge.badge()
->RAMBadge()
)