Latest 1.1.2
Homepage https://github.com/kazuomatz/AwesomeBadge
License MIT
Platforms ios 10.0
Dependencies FontAwesome.swift
Frameworks UIKit
Authors

Version
License
Platform

AwesomeBadgeView is a view class as Like a badge using fontawesome 5. As a use, at the mission reward of the game app etc.

AwesomeBadge

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

FontAwesome.swift

Installation

AwesomeBadge is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'AwesomeBadge'

Usage

import AwesomeBadge

let badgeView = AwesomeBadgeView(
            fontStyle: .brands,            // font awesome style .solid / .regular / .brands
            fontName: "fa-android",        // font awesome font name 'fa-xxxxx'
            frame: CGRect(x:0, y:0, width: 100,height: 100),
            backgroundColor: "#a4c639"     // Color (Hex String)
        )
self.view.addSubView(badgeView)       

AwesomeBadge

let badgeView = AwesomeBadgeView(
            fontStyle: .brands,            // font awesome style .solid / .regular / .brands
            fontName: "fa-android",        // font awesome font name 'fa-xxxxx'
            frame: CGRect(x:0, y:0, width: 100,height: 100),
            backgroundColor: "#a4c639"     // Color (Hex String)
            gradient: false               // not add GradientLayer
        )
self.view.addSubView(badgeView)       

AwesomeBadge

@IBOutlet weak var badgeView:AwesomeBadgeView!

badgeView.drawBadge(
    fontStyle: .solid,
    fontName: "fa-star-and-crescent",
    radius: 200,
    backgroundColor: "#273751",
    gradient: true,
    foregroundColor: "#f4e242"
)

AwesomeBadge

Structure of Views

AwesomeBadge

Author

kazuomatz, [email protected]

License

  • AwesomeBadge is available under the MIT license. See the LICENSE file for more info.
  • All font files licensed under SIL OFL 1.1
  • FontAwesome.swift licensed under MIT

Latest podspec

{
    "name": "AwesomeBadge",
    "version": "1.1.2",
    "summary": "a view class as Like a badge using fontawesome 5.",
    "description": "a view class as Like a badge using fontawesome 5. As a use, remuneration etc. at the mission reward of the game app etc.",
    "homepage": "https://github.com/kazuomatz/AwesomeBadge",
    "screenshots": "https://user-images.githubusercontent.com/2704723/51324154-4de49080-1aad-11e9-904c-4046d65d881b.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kazuomatz": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kazuomatz/AwesomeBadge.git",
        "tag": "1.1.2"
    },
    "source_files": "Classes/**/*",
    "platforms": {
        "ios": "10.0"
    },
    "dependencies": {
        "FontAwesome.swift": []
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This