πŸ‡ΈπŸ‡ͺ Flag extension make flag emoji, image
Clone or download
cruisediary Merge pull request #11 from cesaredecal/patch-1
Enabled the option to draw the image using a custom UIColor
Latest commit 8060310 Dec 12, 2018

README.md

Flags

πŸ‡ΈπŸ‡ͺ Flag extension

Swift Version License Platform Carthage compatible Codecov

flags

Usage

let flag = Flag(countryCode: "SE")

let countryLabel = UILabel()
countryLabel.text = flag?.emoji // πŸ‡ΈπŸ‡ͺ

let countryNameLabel = UILabel()
countryNameLabel.text = flag?.countryName // Sweden

let countryImage = UIImageView()
countryImage.image = flag?.image // πŸ‡ΈπŸ‡ͺ to image

Example

  • Flags - Flags for iOS Rxswift, ReactorKit and IGListKit example

Requirements

Flags is written in Xcode 10, Swift 4.2, iOS 8.0 Required

πŸ“² Installation

Flags is available through Cocoapods or Carthage.

Cocoapods

pod "Flags"

Carthage

github "cruisediary/Flags" ~> 0.4.0

❀️ Contribution

Pull requests are always welcomed πŸ„πŸΌ

πŸ‘¨β€πŸ’» Author

cruz, cruzdiary@gmail.com

πŸ›‘ License

Flags is available under the MIT license. See the LICENSE file for more info.