Comments (14)
viewDidLoad
hasn't finished calculating the sizes of your view controller, have you tried using viewWillAppear
? Technically this is the event you want if you want to display the keyboard
from textfieldeffects.
Tried this: override func viewWillAppear(_ animated: Bool) { self.emailTextField.becomeFirstResponder() }
but that doesn't change anything
from textfieldeffects.
You need to call super.viewWillAppear(animated: animated)
before your first responder. If that doesn't work, make sure your constraints are setup correctly.
Try reproducing the issue in the demo project, that will help me more
from textfieldeffects.
Didn't work either :( Pretty sure the constraints are correct. You can just look at my git:
https://github.com/DieGlueckswurst/Wishlist
Just run the project and click on "Mit Email fortfahren".
The code is inside ViewControllers -> StartingVC -> EmailVC
from textfieldeffects.
You seem to be overwriting the rect methods, try using the library directly to see if the problem persists https://github.com/DieGlueckswurst/Wishlist/blob/5d8a09ce9db4fe53f22c66f1684a158bb77a0e1f/Wishlist/Helpers/TextfieldExtensions/CustomTextField.swift
If not, please try to reproduce on the demo project
from textfieldeffects.
Ok I created a demo project and it is not the same error but now the Textfield doesn't get displayed at all if I call becomeFirstResponder
Here is the demo project: https://gofile.io/?c=j9qqLn
from textfieldeffects.
any idea why that happens?
from textfieldeffects.
Sorry, when I mentioned demo project I mean the one that comes with the library
from textfieldeffects.
sorry I am not quite following you there, don't know too much about git. Could you just use my demoproject? Or maybe try it out yourself in one of your projects? If it is working for you then I know that I messed up myself :)
from textfieldeffects.
any Updates on this?
from textfieldeffects.
any updates on this?
from textfieldeffects.
Hey, no... you haven't done what I requested. #198 (comment) this library comes with a demo project, can you please reproduce the problem there?
from textfieldeffects.
alright, I reproduced the problem and uploaded it :) You can also very easily try it yourself by just calling "becomeFirstResponder" inside "viewDidLoad". Like I said in the comments above, calling it inside viewWillAppear
is not solving the problem :/
from textfieldeffects.
did you see what I uploaded ?
from textfieldeffects.
Related Issues (20)
- Place holder font is different than the standard font HOT 11
- Change Placeholder to attributed font HOT 9
- Clear-Button is not being displayed HOT 1
- Font types of placeholder and content don't match HOT 4
- Placeholder label text not changing HOT 11
- Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2 compiler HOT 5
- HoshiTextField inactive state line does not appear HOT 3
- Issue in KaedeTextField Effect. HOT 1
- Placeholder not returning to original position. HOT 2
- Use of .fontName deprecated in Xcode 11 HOT 3
- It is not working on black background for view and white background for textfield HOT 1
- ailed to set (borderActiveColor) user defined inspected property on (TextFieldEffects.YokoTextField) this class is not key value coding-compliant for the key borderActiveColor. HOT 1
- TextField overlap rightview HOT 2
- How to move placeholder to center and stays there when cursor is ready
- Round Corner on Akira HOT 2
- Issue with some Fonts
- Issue with placeholder in iOS 15
- placeholder. floating not working proper
- Privacy Manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textfieldeffects.