Latest 1.0.0
Homepage https://github.com/serebryakov-av/WavatarSwift
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

Version
License
Platform

Example

WavatarSwift

To run the example project, clone the repo, and run pod install from the Example directory first.

WavatarSwift.generate(string: string, size: 50)

Also you can generate wavatar in background with completion (in main thread):

WavatarSwift.generate(string: this.string, size: WavatarSwift.maxSize) {
    string, image in
    imageView.image = image
}

Limitation:

  • Image size is limited by 80.

Requirements

  • iOS 8+.
  • Any MD5 implementation. You need use it in WavatarSwiftMD5 protocol extension for class WavatarSwift.
extension WavatarSwift: WavatarSwiftMD5 {
    public class func md5(_ string: String) -> String {
        return MD5(string)
    }
}

Installation

WavatarSwift is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'WavatarSwift'

Author

Anton Serebryakov, [email protected]

License

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

Latest podspec

{
    "name": "WavatarSwift",
    "version": "1.0.0",
    "summary": "WavatarSwift is a swift implementation of "Wavatar", identical to wavatars from gravatar.com.",
    "description": "WavatarSwift is a swift implementation of "Wavatar". They are produced localy, so you don't need any internet to make them.",
    "homepage": "https://github.com/serebryakov-av/WavatarSwift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Anton Serebryakov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/serebryakov-av/WavatarSwift.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "WavatarSwift/Classes/**/*",
    "resource_bundles": {
        "WavatarSwift": [
            "WavatarSwift/Assets/Parts.bundle"
        ]
    },
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This