vpeschenkov / letteravatarkit Goto Github PK
View Code? Open in Web Editor NEW๐ฒ Use this extension ๐งฉ to create letter-based avatars or placeholders ๐ญ to be utilized within your app
License: MIT License
๐ฒ Use this extension ๐งฉ to create letter-based avatars or placeholders ๐ญ to be utilized within your app
License: MIT License
Currently if the name you pass to use for the initials has more than one space, there will be more than two characters in the abbreviated initials view. Can you modify the code to look for both the first and last word and then capture the first letters of those instead?
Because of using SPM:
In the Readme, you show the letter avatars as square or rounded but I am having difficulty doing this. Can you share the code for this please?
Regardless, Thank you very much for this library!!
HI ,
I am getting compilation issue on this line.
if let letter = firstComponent.first
the issue says
"'String' has no member 'first'"
can you add this extension to make it work ? on swift 3.0 as well.
extension String{
func first()->String{
return String(self.characters.prefix(1))
}
}
I use Carthage so does this lib support it?
Describe your issue here.
Hexcode -- 1F000000 is Used
Filling out the following details about bugs will help us solve your issue sooner.
LetterAvatarKit version:
iOS version: 13.3.1
SwiftUI is supported starting iOS 13, while project min support is for iOS 9.
HI,
Is it possible to add support for single letter via Configuration ? Like I only want to use Single Letter as Initials like google does.
The minimum ios is 9 now.
Any plans to migrate to Xcode 10 and Swift 4.2?
Hello
http://gargo.of.by/letteravatarkit/
here is a translation of your library to Russian. Could you please add a link to it?
Great library! Any plan to add support for SPM?
First of all: Thanks for the convenient library!
I ran into an issue where my app crashed with a username that consists out of one letter only. Looking into your code, I saw that this is probably due to the fact that the single
parameter in LetterAvatarBuilderConfiguration
is always false. I changed it into:
open var singleLetter: Bool {
if let name = username, name.count == 1 {
return true
} else {
return false
}
}
in my local repo, but I can't push them to your repo to create a pull request. Would you mind giving me permission or changing this yourself?
It will be possible after #22 will be done
If single Letter is passed as false but the string is a single char, this line fails due to out of bounds exception.
I think it would be safer to avoid this crash inside the framework by checking the size of the string before subscripting.
If the string is only 1 letter lenght, then the singleLetter
configuration could be ignored
Is it possible to allow for up to 2 letters? It seems that currently you can only choose between 1 and 3.
I get this error when building, I have the latest version of Cocoapods, Swift and xCode
Hi,
First of all, thank you very much for this library. Great job :)
I was wondering how I can draw a circular image instead of a rectangular one?
Nawras
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.