GithubHelp home page GithubHelp logo

materialdesigntest's Introduction

Material Design Test

Inspired by the recent release of the Material Design language by Google, I put together an experimental implementation of UITextField and UITextView that mimic (sort of) the Material Design text fields.

image

MaterialTextField and MaterialTextView are Swift components, inspectable in Interface Builder. The components are contained in a Cocoa Touch Framework. They was developed with Xcode6 and IOS8 SDK betas.

Fortunately, a significant part of functionality (moving placeholder) was already implemented in Objective-C by the JVFloatLabeledTextField project, so I only added the bottom line decoration and the support for field validation. MaterialTextField and MaterialTextView are subclass of JVFloatLabeledTextField and JVFloatLabeledTextView respectively.

Features

  • moving placeholder
  • bottom decoration line
  • error state support with icon and label
  • colors and line width are configurable in Interface Builder
  • text view auto expand height when required (only AutoLayout supported)

Limits

  • MaterialTextView has some serious scrolling issue.

Acknowledgments

Material Framework is based on JVFloatLabeledTextField. Auto expanding UITextView functionality is imported from AUIAutoGrowingTextView.

See Also

See ZFRippleButton for an UIButton with ripple effect, inspired by Google Material Design. Also written in Swift.

Contact

materialdesigntest's People

Contributors

mbigatti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

materialdesigntest's Issues

Too many errors

Looks very promising but I get a ton of errors when I try to run in Xcode (6.3.2). Both of the projects and the xcworkspace Build Fail. Are there any instructions on how to run this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.