Comments (12)
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
from ibanimatable.
Random color, random gradient? (we can even go further and play with Chameleon to have a nice result)
from ibanimatable.
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.
from ibanimatable.
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...
from ibanimatable.
Well, that app must be very smart to create relevant colors. it is something like this https://color.adobe.com/
from ibanimatable.
Exactly! That's why I was saying it shouldn't be a priority 😆
from ibanimatable.
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'.
from ibanimatable.
@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?
from ibanimatable.
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.
from ibanimatable.
@phimage it is very cool. I see the code is quite small but super powerful 💪
from ibanimatable.
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)? 🙃
from ibanimatable.
Yes, it's ok with me
The idea come after reading this issue
from ibanimatable.
Related Issues (20)
- Chaining doesn't work at all HOT 1
- CALayerInvalidGeometry CALayer position contains NaN: [nan 11] HOT 1
- Accio installation fails HOT 3
- AnimatableModalViewController enable userInteraction on previous VC HOT 1
- Animations work without IB? HOT 2
- Update in to swift 5 HOT 1
- Animate rotate infinite? HOT 1
- SwiftUI integration / support HOT 2
- Module 'IBAnimatable' was not compiled with library evolution support HOT 1
- IBAnimatable with SPM & XCode 11 -> "currentMediaTime" unknown property HOT 1
- full view gradient (on main view) does not redraw upon screen orientation changing HOT 3
- Is there a mask which rounds certain selected sides? HOT 1
- Swift Package 6.0 compilation error HOT 7
- is there a mask for semicircle / cords? HOT 1
- CFBundleVersion issue while compiling demo code. How to resolve this issue?? HOT 4
- Image tint color for left and right textfield images.
- Button with IBAnimatable in iOS 14 title not display complete HOT 5
- Image going out of frame while apply shadow
- SPM Compiler Errors HOT 2
- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>FMWK</string> <key>CFBundleShortVersionString</key> <string>0.5.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>$(CURRENT_PROJECT_VERSION)</string> <key>NSPrincipalClass</key> <string></string> </dict> </plist HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ibanimatable.