Badges “UIButton”的一个子类,已准备好徽章视图 Badges 徽章按钮-斯威夫特 其子类已准备好锁屏提醒视图。UIButton 用法: let b = BadgeButton(icon: UIImage(named: "bell", shouldLimitValueTo9: true)!) 演示: GitHub 点击跳转 BadgesButtons