Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random data generator #78

Open
JakeLin opened this issue Feb 8, 2016 · 12 comments
Open

Random data generator #78

JakeLin opened this issue Feb 8, 2016 · 12 comments
Milestone

Comments

@JakeLin
Copy link
Member

JakeLin commented Feb 8, 2016

Random name, random address, random title, random text?

Depends on Plugin for prototyping only

@tbaranes
Copy link
Member

tbaranes commented Feb 8, 2016

Random color, random gradient? (we can even go further and play with Chameleon to have a nice result)

@JakeLin
Copy link
Member Author

JakeLin commented Feb 8, 2016

Yes, I don't think random color or gradient is useful, I rather choose them in predefined color/gradient set. random name, avatar and image will be very helpful for prototyping since all of us are I am lazy.

@tbaranes
Copy link
Member

tbaranes commented Feb 8, 2016

Depending, it would be nice to randomise a gradient / color relative to a defined background. For example, when prototyping, we could just specify a color, and have everything around nice.

Nevertheless, I agree with you that is less useful than names, address...

@JakeLin
Copy link
Member Author

JakeLin commented Feb 8, 2016

Well, that app must be very smart to create relevant colors. it is something like this https://color.adobe.com/

@tbaranes
Copy link
Member

tbaranes commented Feb 8, 2016

Exactly! That's why I was saying it shouldn't be a priority 😆

@lexrus
Copy link
Member

lexrus commented Feb 10, 2016

https://github.com/timuric/Content-generator-sketch-plugin
http://www.invisionapp.com/craft
It would be awesome if we can do the same things in storyboard.
How about we start from an easy one, names label. Implement as a protocol extension in a CocoaPods sub spec called 'Prototyping'.

@JakeLin
Copy link
Member Author

JakeLin commented Feb 10, 2016

@lexrus that's why I am thinking of, there are some dataset when we work on it like http://uinames.com/ and http://www.radfaces.com/

May create PrototypableLable: AnimatableLable to add on those properties, but I am not sure can we build another Pod within the same framework? Or we can have a Prototyping framework based on IBAnimatable framework?

@tbaranes
Copy link
Member

We can create a subspec if we want to keep everything in IBAnimatable. That means we can specify in our Podfile which spec we wants:

pod 'IBAnimatable'
pod 'IBAnimatable/Prototyping'

However, I'm not sure that it's a good idea to keep everything in IBAnimatable since a prototyping framework is a big job apart.

@JakeLin JakeLin modified the milestones: nice-to-have, v6, 2.6 Feb 13, 2016
@phimage
Copy link
Member

phimage commented Apr 5, 2017

Hi guys, I have some code which can help

I make a proof of concept project
Here a video https://www.dropbox.com/s/pj61i4t2m86cl8p/Ibfakery.mov?dl=0
https://github.com/phimage/IBFakery

In user defined runtime attributes

  • to the left we assign the type of data
  • to the right, the field where the value must be set

I use swift framework https://github.com/vadymmarkov/Fakery for my fake data
And I make a little code for random colors (but other frameworks could be used like https://github.com/nvzqz/RandomKit)
A KVC compliant framework for fake and random data will be more easy to integrate

@JakeLin
Copy link
Member Author

JakeLin commented Apr 5, 2017

@phimage it is very cool. I see the code is quite small but super powerful 💪

@tbaranes
Copy link
Member

tbaranes commented Apr 6, 2017

Should we move that issue in a dedicated project and why not adding that project in IBAnimatable organization (if that's ok with you @phimage)? 🙃

@phimage
Copy link
Member

phimage commented Apr 6, 2017

Yes, it's ok with me
The idea come after reading this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants