Skip to content

๐Ÿ‡ธ๐Ÿ‡ช Flag extension make flag emoji, image

License

Notifications You must be signed in to change notification settings

cruisediary/Flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

74 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.