Giter Club home page Giter Club logo

smfloatinglabeltextfield's Introduction

SMFloatingLabelTextField

This CocoaPod providers the ability to use a UITextField that displays floating placeholder. When user type some text into field, or text is set programatically, placeholder label is displayed above field itself. The placeholder labes appears and disappears using animation.

Version Platform

Example

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 8.0 CocoaPods 1.0

Installation

SMFloatingLabelTextField is available through CocoaPods and Carthage. To install it, simply add the following line to your Podfile:

pod "SMFloatingLabelTextField"

or Cartfile:

github "AzimoLabs/SMFloatingLabelTextField"

Author

Michał Moskała, [email protected]

License

SMFloatingLabelTextField is available under the Apache license. See the LICENSE file for more info.

Towards financial services available to all

We’re working throughout the company to create faster, cheaper, and more available financial services all over the world, and here are some of the techniques that we’re utilizing. There’s still a long way ahead of us, and if you’d like to be part of that journey, check out our careers page.

smfloatinglabeltextfield's People

Contributors

frogermcs avatar masliukivskyi avatar matkuznik avatar moskacz 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

smfloatinglabeltextfield's Issues

Setting the attributedPlaceholder not working

First of all, its really nice to see.
Really appreciate.

i have faced this issues, if we set attributedPlaceholder in that case label does't come up so we have to use placeholder only or is there any alternate.

Thanks

What is minimum size of the textfield should be ?

Hello,

First of all this is really very good library for floating Labels upon the textfields. i want to know that what is the minimum size for the textfield? and what about if we want to apply this feature to textView also as there are some fields which contains "\n" also.

Thank you.

Constraints are wrong if text property is set prior to layout

Hi! I noticed that if I set the .text property of the text field to a value prior to the view being laid out, the first time the placeholder animates, it will animate based on a very wrong location. My fix is to also update the constraints when the bounds of the view changes. Here's some code you can add to the class:

- (void)setBounds:(CGRect)bounds
{
    BOOL boundsChanged = !CGRectEqualToRect(self.bounds, bounds);
    [super setBounds:bounds];
    if (boundsChanged) {
        [self updateConstraintsToCurrentState];
    }
}

Thanks for the nice pod :)

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.