I have a Today Extension and I have a textfield and button and what I want to do is if textfield.hasText == true
do something and if textfield.hasText == false
then i want to show an alert within the widget
Asked
Active
Viewed 329 times
2

cs4alhaider
- 1,318
- 1
- 17
- 26
-
Check this [thread](https://stackoverflow.com/a/46850263/7469518) out, it might be helpful! – Abdullah Jafar Jan 28 '18 at 07:14
1 Answers
0
First of all, Keyboard Entry is not allowed in iOS Extensions, so have a UITextField
in Today Widget doesn't make any sense.
Because user interaction with Today widgets is quick and limited, you should design a simple, streamlined UI that highlights the information users are interested in. In general, it’s a good idea to limit the number of interactive items in a widget. In particular, note that iOS widgets don’t support keyboard entry.

PGDev
- 23,751
- 6
- 34
- 88