cosmicmind / material Goto Github PK
View Code? Open in Web Editor NEWA UI/UX framework for creating beautiful applications.
Home Page: http://cosmicmind.com
License: MIT License
A UI/UX framework for creating beautiful applications.
Home Page: http://cosmicmind.com
License: MIT License
Currently it only supports parent child.
Ability to reveal cards both base + image
Bug in MaterialButton in this block:
private func prepareBackgroundColorView() {
backgroundColorView.translatesAutoresizingMaskIntoConstraints = false
backgroundColorView.layer.masksToBounds = true
backgroundColorView.clipsToBounds = true
backgroundColorView.userInteractionEnabled = false
insertSubview(backgroundColorView, atIndex: 0)
Layout.expandToParent(self, child: backgroundColorView)
}
Where the insertSubview line fails with lldb
Hello! I just got an update approved today with Swift 2 and MK so great work all around :)
Just curious about what happened to the old style of image card? I would like to have that style with the image above, title overlaid, and card content+buttons below.
Thanks!
Is there a way to turn off pulsation so that there is only the appearance that the button is being lifted / raised?
I've tried button.pulseColor = UIColor.clearColor()
but that doesn't have the desired effect (there is still a dark pulse)
I would like the option to enable multi-line titles. Something like this:
card.titleLabel!.lineBreakMode = NSLineBreakMode.ByWordWrapping
card.titleLabel!.numberOfLines = 0
could allow the title to be multi-line with the card resizing appropriately.
Thank you for the amazing library!
id _Nullable is incompatible with CFTypeRef _Nullable aka (const void *)
Hi all,
I'd like the ability to provide a block that will run when the image in an ImageCardView is tapped:
card.tapImageBlock = {()
in
// Do something here
}
Any thoughts?
P.S. I want to use this to open a lightbox with that image, if there is a way I can accomplish this now, please let me know.
Experimental working off branch new_cards
Are there plans for a swift v2 release?
When i add this code to the MK Card I get constraint issues
//material Kit Card
card.detailLabel = UILabel()
card.detailLabel?.textAlignment = .Center
card.detailLabel?.font = UIFont(name:"Arial", size: 45)
view.backgroundColor = MaterialTheme.grey.darken1
(when i remove the line of code above this issue is gone, could it be the size of the font?)
2015-09-19 09:26:09.075 RapWordGenerator[42757:9240231] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7f8b8c08e980 V:|-(8)-[UILabel:0x7f8b8c08a4f0] (Names: '|':UIView:0x7f8b8c08c1f0 )>",
"<NSLayoutConstraint:0x7f8b8c08ea00 V:[UILabel:0x7f8b8c08a4f0(<=144)]>",
"<NSLayoutConstraint:0x7f8b8c08ea80 V:[UILabel:0x7f8b8c08a4f0]-(8)-| (Names: '|':UIView:0x7f8b8c08c1f0 )>",
"<NSLayoutConstraint:0x7f8b8c08e860 V:|-(0)-[UIView:0x7f8b8c08c1f0] (Names: '|':MaterialKit.BasicCard:0x7f8b8af1ff10 )>",
"<NSLayoutConstraint:0x7f8b8c08e0d0 V:[UIView:0x7f8b8c08c1f0]-(0)-| (Names: '|':MaterialKit.BasicCard:0x7f8b8af1ff10 )>",
"<NSLayoutConstraint:0x7f8b8c098310 V:[MaterialKit.BasicCard:0x7f8b8af1ff10(310)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7f8b8c08ea80 V:[UILabel:0x7f8b8c08a4f0]-(8)-| (Names: '|':UIView:0x7f8b8c08c1f0 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
I would like to add more padding around the title and description labels. How would I go about this?
Hey, it's me again.. Looking to support animated gif's in ImageCardView. Any thoughts?
Is it possible for the ImageCardView to change the size of its image view to the width-height ratio of the UIImage being loaded into it?
Naming will need to be decided.
This should work as a container class. The initial implementation will support a left side nav view controller.
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.