Giter VIP home page Giter VIP logo

b68floatinglabeltextfield's People

Contributors

dirkfabisch avatar jaisonv avatar johndpope avatar readmecritic 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  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

b68floatinglabeltextfield's Issues

Cant use it with init()

Hi,

I am trying to use your pod but not able to lazy load it..

I am not able to do
var textField = B68UIFloatLabelTextField()

but I had to do
var textField = B68UIFloatLabelTextField(coder: NSCoder.empty())

and further had to write an extension of

extension NSCoder {
class func empty() -> NSCoder {
let data = NSMutableData()
let archiver = NSKeyedArchiver(forWritingWithMutableData: data)
archiver.finishEncoding()
return NSKeyedUnarchiver(forReadingWithData: data)
}
}

Can you please update it to use the default init method

floating labels shown on textfields with no text

If you add a floating label text field to a tableview cell and add about 20 or so of them, so that they are off the screen. when tableview reuses cells, it still shows floating label even for the textfields that have no text.

I've fixed the issue, but i'm having issue make a pull request.
This is where the issue is:

override public func layoutSubviews() {
super.layoutSubviews()
if (isFirstResponder() && !hasText()) {
hideFloatingLabel()
} else if(hasText()) {
showFloatingLabelWithAnimation(true)
}
}

just change it to:

override public func layoutSubviews() {
super.layoutSubviews()
if ((isFirstResponder() && !hasText()) || !hasText()) {
hideFloatingLabel()
} else if(hasText()) {
showFloatingLabelWithAnimation(true)
}
}

Sasa

Overlay view support

I would like to request overlay view support. In other words, I'd like to be able to add a leftView and have the floating placeholder text place it self appropriately.

Carthage Support?

Hi,

What do you think about add option to install this kit via Carthage? I would like to use it this way. Thanks

Use of undeclared type 'B68UIFloatLabelTextField'

Hi, I recently stumbled upon your customized Text Field and I wanted to see how it works. However, I can't seem to make it work in my project as I get an error saying Use of undeclared type 'B68UIFloatLabelTextField' when I try to make an IBOutlet of this type. I installed the project via Cocoapods which worked and tried to follow your example but I can't seem to get this working. If it helps I'm making a Swift project. Do I need to import anything or add the file anywhere? Thanks for your help.

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.