bachonk / initialsimageview Goto Github PK
View Code? Open in Web Editor NEWA simple UIImageView extension for using initials as a profile image, written in swift
License: MIT License
A simple UIImageView extension for using initials as a profile image, written in swift
License: MIT License
All its working now with new commit. Thanks
Hi,
With Swift 4 we have a error:
Value of type 'UIImageView' has no member 'setImageForName'
Thanks a lot!
Hi, first of all, thank you for this library :)
Currently the background color doesn't get updated if the user switches between light and dark mode. This is because of using cgColor, which doesn't automatically update.
I see no option to set the border width and color for image. Can you add the functions as well?
Update for Swift 4.2
Crashed: com.apple.main-thread
0 InitialsImageView 0x1066d8f44 specialized UIImageView.imageSnapshot(text:backgroundColor:circular:textAttributes:gradient:gradientColors:) + 74 (InitialsImageView.swift:74)
1 InitialsImageView 0x1066d6364 UIImageView.setImageForName(_:backgroundColor:circular:textAttributes:gradient:gradientColors:) ()
2 SocialBoards 0x104935390 closure #1 in UIImageView.downloadFrom(link:contentMode:rounded:loader:lettersToAssign:backgroundColor:) + 4373861264
Everything works fine for "John do" but only "John" give nothing.
var nameComponents = string.uppercased().components(separatedBy: CharacterSet.letters.inverted)
nameComponents is nil with only "John".
I don't know if it's expected but would be nice to get only a J in this case
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.