Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Nikolai Vazquez
@nvzqz
Ok, in that case I'll try pushing out a new release tonight (my timezone)
Dingzhong Weng
@oasisweng
I have downloaded 1.6.0 version just now. But I can't use any feature at all somehow, for example, "var n : NSNumber = NSNumber.random()". Other pod libs are all working. Should I drag all of your extension files into my own project then?
I tried "import RandomKit" but it was an error. There isnt any instruction on how this lib works. Mind explaining this please?
Eric Marchand
@phimage
yes "import RandomKit" is need in your file
Dingzhong Weng
@oasisweng
nice it works
somehow it reported error at first
thanks
Eric Marchand
@phimage
sometimes xcode does'nt compil depencies immediatly
dependencies*
Dingzhong Weng
@oasisweng
i noticed, its very slow responding to changes lately.
but im working on an app where i want to generate some fake names for testing.
it will be nice if your String extension can actually generate names!
fake names ofc
Eric Marchand
@phimage
you can make an array of name and select randomly on it
there is method on array to select randomly
Dingzhong Weng
@oasisweng
i use this lib for my rails project it allows me to generate random names and addresses
if i need to randomize an array of name, i might just as well use this array without randomizing you know
anyway its just a suggestion
here is the array of this library
Dingzhong Weng
@oasisweng
yeah i know. i am suggesting that you can use it too. it will save my time finding these names and copy n paste
not big deal without this feature. thanks for helping out my first problem
see yah
Eric Marchand
@phimage
project owner will read it later and maybe add that into Random class
Nikolai Vazquez
@nvzqz
Yup I will
I'll try to get started on that this weekend
Eric Marchand
@phimage
only english name/word https://github.com/stympy/faker/blob/e4d5e7c9afa18fddcb43e1a68776f6e29758f5f2/lib/locales/en.yml or according to user locale (maybe too much work here)
Nikolai Vazquez
@nvzqz
Is there an enum for locale or something to make it easy to manage?
Eric Marchand
@phimage
I don't know if there is a swifty way to do it, only NSLocale or NSBundle
Nikolai Vazquez
@nvzqz
It can't be that hard to implement
Eric Marchand
@phimage
    for code in NSLocale.ISOLanguageCodes() {
        print("case \(code)")
    }
:panda_face:
Nikolai Vazquez
@nvzqz
Huh... I'd try that out but I'm not at my computer
Nikolai Vazquez
@nvzqz
Is there no actual way to get static values for these codes?
Punita Ojha
@punitaojha
This message was deleted
bossbondnft
@bossbondnft1_twitter
0x4842c294b26e5c68c632bc6f8d078ed8fe50ccba
0x4842c294b26e5c68c632bc6f8d078ed8fe50ccba