Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coderyi/stringformat

A String Format Kit
https://github.com/coderyi/stringformat

ios string stringextension stringformat stringformatter swift url

Last synced: 20 days ago
JSON representation

A String Format Kit

Awesome Lists containing this project

README

        

### CocoaPods

```ruby
pod 'StringFormat'
```

## Features

- StringFormat
- Date
- DeviceType
- Duration
- Geo
- Locale
- Number
- URLEscaping
- String Extension
- Image
- URL
- Emoji
- Hash
- Padding
- File

## Usage

```
StringFormat.stringForDeviceType() // iPhone
StringFormat.stringForDuration(122) // 2:02
StringFormat.isValidUrl("https://github.com") // true

var test: String = "hello"
test = test.rightJustified(width: 6) // " hello"
```

## License
Released under [MIT License](LICENSE).