oleghnidets / tweetextfield Goto Github PK
View Code? Open in Web Editor NEWLightweight set of text fields with nice animation and functionality 🚀
License: MIT License
Lightweight set of text fields with nice animation and functionality 🚀
License: MIT License
ℹ Please replace this with what you did.
ℹ Actual results. Please replace this with of what happened instead.
ℹ Expected results. Please replace this with what you expected.
ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.
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.
ℹ Please replace this with what you did.
ℹ Actual results. Please replace this with of what happened instead.
ℹ Expected results. Please replace this with what you expected.
ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.
Setup textfield in interface builder with a button to remove the textfield at runtime
(removeFromSuperview and set the pointer to nil)
The Debug Memory Graph ( or instruments ) shows the textfield is still alive
expect to be released
ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.
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.
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.
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
.
ℹ Please replace this with what you did.
ℹ Actual results. Please replace this with of what happened instead.
ℹ Expected results. Please replace this with what you expected.
ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.
Updated to Xcode 10 beta 5
The layout manager crashed on runtime
with message 'Unable to activate constraint with anchors'
either on viewDidLoad or when the field become editing
work without crashing
ℹ (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
I can't use textFieldShouldClear. please fix it.
Changed the device orientation to landscape
and back to portrait
when the TweeAttributedTextField
was in focus (when the keyboard is showing-up).
The TweeAttributedTextField
height is increased by x2 and the placeholder became to the middle of the TweeAttributedTextField
.
The TweeAttributedTextField
should stay the same and the placeholder should re-calculate it's position and be above the TweeAttributedTextField
.
I want to display placeholderlabel and TextField.text
ℹ Please replace this with what you did.
usernameTextField.text = "alex"
placeholderlabel and TextField is mess together ,
ℹ Actual results. Please replace this with of what happened instead.
placeholderlabel is upon TextField
ℹ Expected results. Please replace this with what you expected.
ios 11, xcode 9
ℹ Please replace this with what you did.
ℹ Actual results. Please replace this with of what happened instead.
ℹ Expected results. Please replace this with what you expected.
ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.
I am not getting the option for showInfo, I just followed the doc. Also I am using objective c.
ℹ When I use Carthage to install the framework, everything is empty. If I do the same thing with CocoaPods, everything is working as expected.
ℹ Framework is empty or have nothing open / public to access in.
ℹ Access to TweeTextField classes as it is with a CocoaPods install.
is it possible to add multiple lines to the TweeAttributedTextField class?
Hi guys,
Is it possible to use framework without Storyboard?
I did not get success in it.
Thanks.
Analyzing dependencies
[!] Unable to find a specification for TweeTextField
ℹ Long press in the textfield
ℹ Actual results. If any textfield text selected or long pressed textfield giving crash
ℹ Expected results. If any textfield text selected or long pressed it should't give crash.
ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.
ℹ Added left view on textfield
ℹ Actual results. leadingPlaceholderConstraint gets added with left view width
ℹ Expected results. Place holder leading after and during animation should work as default
ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.
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.
set both text and placeholder in interface builder
Text and placeholder displayed, placeholder didn't move up
expected placeholder moved up since text is set
ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.
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.
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) }
}
}
The font of the label was changed but now the text is very near the bottom line; as seen in the image:
ℹ Expected results. Please replace this with what you expected.
ℹ Please replace this with what you did.
ℹ Actual results. Please replace this with of what happened instead.
ℹ Expected results. Please replace this with what you expected.
ℹ (Optional) Please link to or upload a project I can download that reproduces the issue.
usernameTextField.placeholder = "Username"
usernameTextField.placeholderColor = .systemBlue
usernameTextField.infoTextColor = .systemGray2
usernameTextField.showInfo("Hello World!", animated: true)
usernameTextField.lineWidth = 1.0
usernameTextField.lineColor = .systemGray2
I cannot find a way to place the placeholder above the text field (like the gif shown on the README file).
To find an easier way to add the placeholder above the text field ;-)
See snippet above.
How can I set the placeholder text on the right side?
no support for RTL
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.
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
Please provide support for UITextView.
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.