Code Monkey home page Code Monkey logo

tweetextfield's People

Contributors

idomo avatar oleggnidets-okta avatar oleghnidets 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  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  avatar  avatar  avatar  avatar  avatar

tweetextfield's Issues

AutoLayout crashes in the recent commits

What did you do?

Updated to Xcode 10 beta 5

What happened instead?

The layout manager crashed on runtime
with message 'Unable to activate constraint with anchors'
either on viewDidLoad or when the field become editing

What did you expect?

work without crashing

Environment

  • Library version: branch: master (should be commit b49c32b )
  • Xcode version: 10.0 beta 5
  • Swift version: (if applicable, if not remove) 4.0
  • Platform running (iOS version): iOS 12 beta 6

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

Note: I specify the build to commit 01c233e and the crash disappears

Set `text` programmatically in text field does not move placeholder upward.

I have a scenario in which I don't have to activate the text field. I have set text in it programatically based on some conditions but now the issue is, this library does not support this thing. When I set text programatically in the text field then placeholder label does not move up. Both text & placeholder text show in the field. It would be a great improvement if you can add this feature in your library.

multiple lines

is it possible to add multiple lines to the TweeAttributedTextField class?

showInfo Multiple Line

I have a long error message which i want to display under the textfield.

Is it possible to make the text continue on the next line?

screen shot 2018-03-25 at 3 08 03 pm

Without Storyboard

Hi guys,

Is it possible to use framework without Storyboard?
I did not get success in it.

Thanks.

Leaks

What did you do?

Setup textfield in interface builder with a button to remove the textfield at runtime
(removeFromSuperview and set the pointer to nil)

What happened instead?

The Debug Memory Graph ( or instruments ) shows the textfield is still alive

What did you expect?

expect to be released

Environment

  • Library version: 01c233e and f46e84c
  • Xcode version: 10.0beta5 & 6
  • Swift version: 4.0
  • Platform running (iOS version): iOS 12 beta 8

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

Not able to create a subclass of this field

What did you do?

ℹ Please replace this with what you did.

What happened instead?

ℹ Actual results. Please replace this with of what happened instead.

What did you expect?

ℹ Expected results. Please replace this with what you expected.

Environment

  • Library version:
  • Xcode version:
  • Swift version: (if applicable, if not remove)
  • Platform running (iOS version):

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

placeholderlabel and TextField is mess together

What did you do?

I want to display placeholderlabel and TextField.text

ℹ Please replace this with what you did.
usernameTextField.text = "alex"

What happened instead?

placeholderlabel and TextField is mess together ,

ℹ Actual results. Please replace this with of what happened instead.

What did you expect?

placeholderlabel is upon TextField

ℹ Expected results. Please replace this with what you expected.

Environment

ios 11, xcode 9

Add SPM support

Hi, thanks for sharing this project. Maybe you could integrate SwiftPackageManager Support in the future? Since Xcode 11 supports it natively in the UI it will may be used more often in the future.

Change font of the placeholder label

What did you do?

I tried to change the font of the placeholder directly but it didn't worked
usernameTextField.placeholderLabel.font = UIFont(name: "Avenir-Heavy", size: 12.0)
So i decided to create a subclass and override the font variable

class CRWTextField: TweeAttributedTextField {
  open override var font: UIFont? {
    get { return UIFont(name: "Avenir-Heavy", size: 12.0) }
    set { super.font =  UIFont(name: "Avenir-Heavy", size: 12.0) }
  }
}

What happened instead?

The font of the label was changed but now the text is very near the bottom line; as seen in the image:
IMG_0095

What did you expect?

ℹ Expected results. Please replace this with what you expected.

Environment

  • **Library version:Lastest
  • **Xcode version:10.1
  • **Swift version: 4.2
  • **Platform running (iOS version): iOS 12

Framework via Carthage ins't working

What did you do?

ℹ When I use Carthage to install the framework, everything is empty. If I do the same thing with CocoaPods, everything is working as expected.

What happened instead?

ℹ Framework is empty or have nothing open / public to access in.

What did you expect?

ℹ Access to TweeTextField classes as it is with a CocoaPods install.

Environment

  • Library version: 1.2.0
  • Xcode version: 9.4.1
  • Swift version: 4.1
  • Platform running (iOS version): Simulator (iOS 11.4)

can we hide info view on click of outside of active textfield

What did you do?

ℹ Please replace this with what you did.

What happened instead?

ℹ Actual results. Please replace this with of what happened instead.

What did you expect?

ℹ Expected results. Please replace this with what you expected.

Environment

  • Library version:
  • Xcode version:
  • Swift version: (if applicable, if not remove)
  • Platform running (iOS version):

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

For iOS 16 textfield Long press

For iOS 16 textfield crashing.

ℹ Long press in the textfield

What happened instead?

ℹ Actual results. If any textfield text selected or long pressed textfield giving crash

What did you expect?

ℹ Expected results. If any textfield text selected or long pressed it should't give crash.

Environment

  • Library version:
  • Xcode version: 14
  • Swift version: 5+
  • Platform running (iOS 16):

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

Placeholder font size bug

Hello.
I have a problem with the display of the empty field's placeholder. In two different situations, the size of the text of the placeholder is different.

Example:
There are two fields of type TweeAttributedTextField.

  1. If I have the field # 1 selected and I manually tap on the field # 2 - the Placeholder font # 1 has the correct dimensions
  2. If I have the field # 1 selected and I go to the next field using the becomeFirstResponder method, the # 1 Placeholder font is larger than the specified

The difference is not significant, but noticeable

In the above examples, the fields are always empty

TweeTextField version (1.0.4)
Xcode Version 9.2
Swift 4
iOS 11.2.1

really good

What did you do?

ℹ Please replace this with what you did.

What happened instead?

ℹ Actual results. Please replace this with of what happened instead.

What did you expect?

ℹ Expected results. Please replace this with what you expected.

Environment

  • Library version:
  • Xcode version:
  • Swift version: (if applicable, if not remove)
  • Platform running (iOS version):

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

Problems when changing orientations

What did you do?

Changed the device orientation to landscape and back to portrait when the TweeAttributedTextField was in focus (when the keyboard is showing-up).

What happened instead?

The TweeAttributedTextField height is increased by x2 and the placeholder became to the middle of the TweeAttributedTextField.

What did you expect?

The TweeAttributedTextField should stay the same and the placeholder should re-calculate it's position and be above the TweeAttributedTextField.

Environment

  • Library version: 1.2.2
  • Xcode version: 9.4.1
  • Swift version: 4.1.2
  • Platform running (iOS version): 11.4

Not working with generic tableview

What did you do?

ℹ Please replace this with what you did.

What happened instead?

ℹ Actual results. Please replace this with of what happened instead.

What did you expect?

ℹ Expected results. Please replace this with what you expected.

Environment

  • Library version:
  • Xcode version:
  • Swift version: (if applicable, if not remove)
  • Platform running (iOS version):

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

Placeholder overlay with set text when the text is set in Interface builder

This bug is kind of like #8 mentioned, but now it's in case when I set text in interface builder
it's fine when I set the text programmically, but it would be good if you can fix this.

What did you do?

set both text and placeholder in interface builder

What happened instead?

Text and placeholder displayed, placeholder didn't move up

What did you expect?

expected placeholder moved up since text is set

Environment

  • Library version: 1.2.2
  • Xcode version: 10 beta 2
  • Swift version: 4.0 (main project is using 4.2 with specified swift_version=4.0 in Podfile post_install area)
  • Platform running (iOS version): 12.0 on iPhone 8 simulator

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

Unable to display the placeholder above the text field

What did you do?

usernameTextField.placeholder = "Username"
usernameTextField.placeholderColor = .systemBlue
usernameTextField.infoTextColor = .systemGray2
usernameTextField.showInfo("Hello World!", animated: true)
usernameTextField.lineWidth = 1.0
usernameTextField.lineColor = .systemGray2

What happened instead?

I cannot find a way to place the placeholder above the text field (like the gif shown on the README file).

What did you expect?

To find an easier way to add the placeholder above the text field ;-)

Environment

  • Library version: master
  • Xcode version: 11.4
  • Swift version: (if applicable, if not remove) Apple Swift version 5.2
  • Platform running (iOS version): iOS

Demo Project

See snippet above.

Notification Center KeyboardWillHide/Show

What did you do?

Two observers NSNotification.Name.UIKeyboardWillShow and .UIKeyboardWillHide share the same selector keyboardDidChange(notification:). Which moves UILabels coordinates depending on if keyboard is showing or not.

What happened instead?

The code in keyboardDidChange(notification:) is being rung every-time the TweeTextField is tapped on but my UI only updates after 2 taps on the same TweeTextField not 1 as intended.

What did you expect?

Expected the UILabel to change coordinate every-time TweeTextField shows or hides keyboard.
My keyboardDidChange(notification:) works perfectly fine on a UITextfield but not on a TweeAttributedTextField.

Environment

  • Library version: 1.2.2
  • Xcode version: 9.4
  • Swift version: 4.1
  • **Platform running (iOS version): 10.13.3 **

Add support to manage gap between placeholder label and entered text.

What did you do?

ℹ Please replace this with what you did.

What happened instead?

ℹ Actual results. Please replace this with of what happened instead.

What did you expect?

ℹ Expected results. Please replace this with what you expected.

Environment

  • Library version:
  • Xcode version:
  • Swift version: (if applicable, if not remove)
  • Platform running (iOS version):

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

Animated Placeholder inset issue when used left view

What did you do?

ℹ Added left view on textfield

What happened instead?

ℹ Actual results. leadingPlaceholderConstraint gets added with left view width

What did you expect?

ℹ Expected results. Place holder leading after and during animation should work as default

Environment

  • Library version: (1.6.3)
  • Xcode version: 11.3.1
  • Swift version: (5)
  • **Platform running (iOS version): 12.4

Demo Project

ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.

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.