evgenyneu / swift-badge Goto Github PK
View Code? Open in Web Editor NEWA badge view for iOS/tvOS written in Swift
License: MIT License
A badge view for iOS/tvOS written in Swift
License: MIT License
translatesAutoresizingMaskIntoConstraints = false
swift-badge-master/swift-badge/SwiftBadge.swift:15:12: Initializer does not override a designated initializer from its superclass
swift-badge-master/swift-badge/SwiftBadge.swift:16:5: Must call a designated initializer of the superclass 'UILabel'
swift-badge-master/swift-badge/ViewController.swift:50:12: 'NSString' is not implicitly convertible to 'String'; did you mean to use 'as' to explicitly convert?
I' m using latest Xcode and swift.
Xcode 10.2 Beta now comes with Swift 5. Any plans on updating swift-badge to support it? Thanks!
I am having trouble finding what Version supports swift 2.3?
I have gone as fat back as 2.011. Could you include this in the docs for future reference?
Thanks!
I have added Bade on story and then, it start complaining some random error.
Failed to render and update auto layout status for [My View Controller Name].swift "
Required code signature missing for BadeSwift.framework missing.
Do you have an version for Swift 2.2?
Please consider submitting the following information (if relevant):
Any chance to add support to SPM?
The .hidden property on the badge seems to hide only the red background. The white text still remains visible. I have tried setting it to "" but it remains the previous value. Any ideas? Thanks
if listingsToLoad[indexPath.row].unReadMessages.value != nil {
cell.cellBadge.hidden = false
cell.cellBadge.text = String(listingsToLoad[indexPath.row].unReadMessages.value!)
} else {
cell.cellBadge.hidden = true
cell.cellBadge.text = ""
}
Hi!
I wanted to subclass BadgeSwift to add some custom default styling. But when i tried i got..
Cannot inherit from non-open class 'BadgeSwift' outside of it´s defining module.
I´m using CocoaPods. I guess this is just because of the missing open
declaration.
Could we add this? Or is the class intentionally non-open?
How to use it with UIBarButtonItem ?
I did try using Autolayout but I cannot make it above the UIBarButtonItem
As explained here, there are some APIs unavailable for extensions. Seems like BadgeSwift is using them, because I am getting the error:
ld: warning: linking against a dylib which is not safe for use in application extensions
Any idea which is the part of the code that is using this kind of APIs? Looking at the functionality of this framework, it should be possible to use it in extensions.
it's possible to add and arrow like disclosure indicator to the badge? And it's possible have different shape?
This is very useful for me. And I think it's much more flexible than other badges you have listed.Why not add it to cocospod?
when in try to use swift-badge I can't import BadgeSwift
I installed pod but I can't import it
many syntax was not exist...sad about this
Add support for setting the corner radius
Hi,
I'm using the last version of the library from cocoapods (BadgeSwift (5.0.1)) and it doesn't build on Swift4.2.
Is there any plan to update it?
It's just one line of code actually:
let rectWithoutInsets = UIEdgeInsetsInsetRect(rect, insets)
to
let rectWithoutInsets = rect.inset(by: insets)
Thanks,
Is there a way to specify a gradient for the badge color?
Please consider submitting the following information (if relevant):
The small red part that appears to be cut off on the top right always pops up. What should I do in order to remove it?
Thank you!
Xcode 9.1 /Swift 4
Is it intendet that the badgeView does not resize dynamically regarding its content?
I would expect a widget to do that
The corner radius support will be added in #10, but if the radius is 0, and the label has border, the top left border has an error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.