https://github.com/cruisediary/flags
πΈπͺ Flag extension make flag emoji, image
https://github.com/cruisediary/flags
emoji flag flags iglistkit ios reactorkit rxswift swift
Last synced: 5 months ago
JSON representation
πΈπͺ Flag extension make flag emoji, image
- Host: GitHub
- URL: https://github.com/cruisediary/flags
- Owner: cruisediary
- License: mit
- Created: 2018-10-09T04:08:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-13T10:27:47.000Z (over 3 years ago)
- Last Synced: 2025-04-10T04:22:05.493Z (11 months ago)
- Topics: emoji, flag, flags, iglistkit, ios, reactorkit, rxswift, swift
- Language: Swift
- Homepage:
- Size: 12 MB
- Stars: 28
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flags
πΈπͺ Flag extension

[](http://cocoapods.org/pods/Flags)
[](http://cocoapods.org/pods/Flags)
[](http://cocoapods.org/pods/Flags)
[](https://github.com/Carthage/Carthage)
[](https://codecov.io/gh/cruisediary/Flags)

## Usage
```swift
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](https://github.com/cruisediary/Flags/tree/master/Example) - 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](http://cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage).
### Cocoapods
```ruby
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.