Comments (9)
So there isn't an actual UIImageView being used. That would make the card heavier than necessary. What is actually happening, the card uses an imageLayer that you can access. As well, the card itself will support an image background too. So to understand your question correctly, are you trying to make the card scale to the image size, so the card can support dynamic sizes of images?
from material.
Yes that's exactly what I'm looking for. If I load a portrait image, I would like the image layer to have the same portrait ratio. Is there an easy way to achieve this now?
from material.
I made the adjustment locally to achieve what you are looking for. In this version you don't have to do a thing, it will do it for you. With that said, I need to run the framework through some tests and I can push it up for you in a short while. Sound good?
from material.
That would be fantastic. Thank you as always. Any way I can buy you guys a round of beers?
from material.
It is a pleasure to make this available for everyone :) We will be doing some meet ups soon, and we would be happy to have a round then. As well, you are helping us make a better product, we appreciate that.
from material.
Anything I can do to help 👍 Keep me in the loop!
from material.
Hey, so the dynamic sizing of ImageCardView has been added. We took this opportunity to add a bunch of tweaks we wanted to get in. Also, there is an additional property, maxImageSize for ImageCardView that doesn't allow the image height to get too long, this avoids any awkward looking cards. You can either not set the maxImageSize value or set it to 0 and it will allow any dynamic height size. I'll leave it to you to explore the new features.
Pro tip* We added a new layer called MaterialLayer. It is really lightweight compared to a UIView and MaterialView. So if you are looking for the neat abilities without the weight, that is a nice option.
All the best :)
from material.
That's awesome! I'm testing now. Looks great!
from material.
great :)
On Tue, Oct 13, 2015 at 11:33 AM, Connor Hicks [email protected]
wrote:
That's awesome! I'm testing now. Looks great!
—
Reply to this email directly or view it on GitHub
#63 (comment)
.
from material.
Related Issues (20)
- TabsController got Black View when Switching tab
- Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1.3 compiler
- Select chip
- [TAB BAR] How to setup tab bar for storyboard
- TextField left view rect not returning correct size
- Theme extension
- Swift 5 update
- Is this framework support Dark Mode?
- TextField does't refresh detailLabel
- Statusbar text color
- tabBar.tabBarStyle = .scrollable alignment to right
- Error with Xcode 12.0 HOT 1
- FABButton is rotated weird
- CGSize intrinsicContentSize on Xcode 12 HOT 2
- Cycle in dependencies between targets 'Material' and 'Motion'; building could produce unreliable results.
- crash when use in a framework target HOT 1
- Error installing with CocoaPods HOT 1
- MATERIAL
- Can not install any pod
- Seeking Guidance and Tips for Starting My UI/UX Design Journey
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 material.