Giter Site home page Giter Site logo

igidenticon's People

Contributors

ashchan avatar helje5 avatar kengruven avatar maxdesiatov avatar seaburg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

igidenticon's Issues

Mac Carthage support

This looks like a pretty neat library, and I'm happy to see it has both iOS and Mac support in the source code.

Unfortunately the default scheme (I think?) only builds for iOS, so a Mac application that loads it with Carthage doesn't build a Mac framework.

This is probably easy to fix, and I'll take a look if I have time, but Xcode projects are not exactly my forte.

Implementing in Swift 3.0

Hello, I'm trying to implement this library in Swift 3.0.

When setting up the generator, I come across the following problem:

let imageGenerator = IGImageGenerator(imageProducer: IGGitHubIdenticon(), hashFunction: IGJenkinsHashFromData(data: Data!))

I'm not sure how to implement the IGJenkinsHashFromData method into swift, can you please assist?

Below is the Objective-C implementation.

#import "IGHashFunctions.h"

uint32_t IGJenkinsHashFromData(NSData *data)
{
    uint32_t hash = 0;
    const unsigned char *bytes = data.bytes;

    for(NSUInteger i = 0; i < [data length]; ++i) {
        hash += bytes[i];
        hash += (hash << 10);
        hash ^= (hash >> 6);
    }
    hash += (hash << 3);
    hash ^= (hash >> 11);
    hash += (hash << 15);

    return hash;
}

Customizable hash function

Right now it looks like it is hardcoded to use MD4. Is this for compatibility with another library? I'd prefer to use SHA-256 if possible.

how to choose the avatar style?

It's great to use this library getting the identicon by client.
however, can i custom the avatar style.

I want get the github style.

XCode 12 build warning, minimum deployment target

XCode 12 warning on build:
... SourcePackages/checkouts/IGIdenticon/Package.swift The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99.

Consider bumping the minimum deployment target to 9.0 to address the warning? (Package.swift)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.