Closed albertml closed 6 years ago
I found the problem. Its because I'm not setting the frame of the UIButton I changed from let cartButton = UIButton() to let cartButton = UIButton(frame: CGRect(x: 0, y: 0, width: 30, height: 30)) and it fixed the problem.
The badge value is there but the navigation bar icon is gone. But it's working in iOS 11.