All Projects → VolleyZ → ETBadge

VolleyZ / ETBadge

Licence: MIT License
A tool of swift to add or clear badge for any UIView。You can use it easily, also can custom it.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to ETBadge

Yeebadge
badgeView for UIView Inspired by WZLBadge,using UIImage to avoid off-screen rendering
Stars: ✭ 33 (+73.68%)
Mutual labels:  badge, reddot
BadgeControl
Badge view with controller written in Swift 5.0
Stars: ✭ 53 (+178.95%)
Mutual labels:  uiview, badge
Ppbadgeview
iOS Custom Badge, Support UIView, UITabBarItem, UIBarButtonItem ,Support Objective-C/Swift; iOS自定义Badge组件, 支持UIView, UITabBarItem, UIBarButtonItem, 支持Objective-C/Swift
Stars: ✭ 807 (+4147.37%)
Mutual labels:  uiview, badge
hexagonTab
Hexagon bookmarks accented with a chosen colour. Customise the layout, style, background and bookmarks with hexagonTab.
Stars: ✭ 65 (+242.11%)
Mutual labels:  new
langauge
🎨 Stylize your readme files with colorful gauges
Stars: ✭ 16 (-15.79%)
Mutual labels:  badge
Yolo-Annotation-Tool-New-
No description or website provided.
Stars: ✭ 71 (+273.68%)
Mutual labels:  new
github-profile-achievements
A collection listing all Achievements available on the GitHub profile 🏆
Stars: ✭ 1,060 (+5478.95%)
Mutual labels:  badge
SuperBadge
🚀 📛 SuperBadge Android Library 🔥
Stars: ✭ 34 (+78.95%)
Mutual labels:  badge
LSAdditions
The Category of Commonly used controls and you can create a control quickly(Object, Control ...)
Stars: ✭ 15 (-21.05%)
Mutual labels:  uiview
ScratchPaper
A Gradle Plugin for adding variant/version/git-commit-id/etc information to APK launcher icon.
Stars: ✭ 58 (+205.26%)
Mutual labels:  badge
Expo-Badge
A design study for Expo badges
Stars: ✭ 22 (+15.79%)
Mutual labels:  badge
badge-generator
Magically generate Markdown badges for your docs 🛡️ 🦡 🧙
Stars: ✭ 104 (+447.37%)
Mutual labels:  badge
hostbase
A Ruby GUI based on advanced rogue AP attack using the WPS
Stars: ✭ 43 (+126.32%)
Mutual labels:  new
badgecreatr
Quickly place relevant badges at the top of your readme, stop copy pasting, start on your project
Stars: ✭ 61 (+221.05%)
Mutual labels:  badge
repo-card
😎 showcase repositories on your website 🤘!
Stars: ✭ 141 (+642.11%)
Mutual labels:  badge
TinderUISamples
[ING] - TinderのようなUIを様々な実装で実現してみる
Stars: ✭ 30 (+57.89%)
Mutual labels:  uiview
sf-java-ui
Json Schema Form java based library allow developers to define schema and form using field annotations
Stars: ✭ 23 (+21.05%)
Mutual labels:  uiview
SwiftGradients
Useful extensions for UIViews and CALayer classes to add beautiful color gradients.
Stars: ✭ 15 (-21.05%)
Mutual labels:  uiview
news-responsive-by-react
一个基于react的新闻网站,可以自适应PC和移动端,登录后有评论和收藏功能。
Stars: ✭ 66 (+247.37%)
Mutual labels:  new
badgemaker
The Nim badgemaker tool.
Stars: ✭ 15 (-21.05%)
Mutual labels:  badge

ETBadge

A tool of swift to add or clear badge for any UIView。You can use it easily, also can custom it.

demo

Installation

The preferred way of installation is via CocoaPods. Just add

pod 'ETBadge'

and run pod install. It will install the most recent version of ETBadge.

Usage

  1. Add the following import to the top of the file:

import ETBadge

  1. Use the following to display badge easily:

badgeView.showBadge(withStyle: .redDot, value: 1, aniType: .none)

badgeView.showBadge(withStyle: .new, value: 1, aniType: .breathe)

badgeView.showBadge(withStyle: .number, value: 1, aniType: .scale)

or simply call interface: badgeView.showBadge()

  1. Use the following to hide badge easily:

badgeView.clearBadge();

4.Use the following to resume badge when it has been hidden:

badgeView.resumeBadge();


BADGE CUSTOMIZATION

Feel free to customize badge size, position, animation style or anything else.

ETBadge provides easy way to customize its style.:

public struct ETBadgeConfigure {
  var badgeFont: UIFont = UIFont.boldSystemFont(ofSize: 10)
  var badgeBgColor: UIColor = UIColor.red
  var badgeTextColor: UIColor = UIColor.white
  var aniType: ETBadgeAnimType = .none
  var badgeCenterOffset: CGPoint = CGPoint.zero
  var badgeStyle: ETBadgeStyle = .redDot
  var badgeMaximumBadgeNumber: Int = 99
  var badgeRedDotWidth: CGFloat = 8
  var badgeTextMargin: CGFloat = 6
  var badgeBounds: CGSize = CGSize(width: 16, height: 16)
}

You can customize style which you like.Simple used:

badgeView.badgeConfig.badgeBgColor = UIColor.yellow

Requirements

  • iOS 8.0+
  • Xcode 8.1+
  • Swift 3.0+


LICENSE

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].