Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-13T10:27:47.000Z (about 2 years ago)
- Last Synced: 2024-10-31T17:44:43.949Z (3 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![Swift](https://img.shields.io/badge/Swift-4.2-orange.svg)
[![Version](https://img.shields.io/cocoapods/v/Flags.svg?style=flat)](http://cocoapods.org/pods/Flags)
[![License](https://img.shields.io/cocoapods/l/Flags.svg?style=flat)](http://cocoapods.org/pods/Flags)
[![Platform](https://img.shields.io/cocoapods/p/Flags.svg?style=flat)](http://cocoapods.org/pods/Flags)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Codecov](https://img.shields.io/codecov/c/github/cruisediary/Flags.svg)](https://codecov.io/gh/cruisediary/Flags)![flags](README/flags.gif)
## Usage
```swift
let flag = Flag(countryCode: "SE")let countryLabel = UILabel()
countryLabel.text = flag?.emoji // πΈπͺlet countryNameLabel = UILabel()
countryNameLabel.text = flag?.countryName // Swedenlet 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, [email protected]## π‘ License
Flags is available under the MIT license. See the LICENSE file for more info.