Swift password keyboard suggestions - swift

How can I achieve such password suggestions as in the picture. Currently I only have a “Password” suggestion in the middle (opens modal with keychain saved credentials)?
Already tried making the:
passwordTextField.textContentType = .password

Related

Why TextField returns null

enter image description here
I entered text in the TextField but it was not transmitted.
What should i do?
Please tell me.
The whole source code is in this github, so please clone it.
The code works for me, try a cold reset of the app. Stop the app fully and then run again.

Xcode Swift 5 MacOs app empty window when archived but works when running it from Xcode

I am building an app for Mac which logs into a website based on login and password collected from textfield and secure text field, then app opens an url which is created in my app based on date range selection with use of two date picker cell calendars. Next app displays html data in webWiev (using WKWebView), converts html to string using extension NSAttributedString and then saves retrieved data as txt file. Everything works as expected as long as app is run from Xcode "play" button. Problem is if I archive this app and launch it, it will bring up an empty window without any button, calendar or textfield. There are no errors, no crash logs on organizer, nothing.
I decided to perform a little test. I build another view controller with only one button which upon clicking will show my app main view controller. After archiving this modified app and running it outside of Xcode a window shows view controller with one button which is correct. But after clicking it nothing happens. App works great if running "inside" Xcode, a pushbutton shows main ViewController correctly. Do You have any clue what can be wrong? thank You!
Edit 1. So I found a discussion on apple which mention this problem. It is associated with IB WKWebView and problem is already known since some time. Now I have to get around the problem. Apple forum link: https://forums.developer.apple.com/thread/116047
Did you embed WebKit.framework to your app?
After comment that I wrote, I founded a solution and solved with this method.
Please check it out.

TouchId without Passcode feature

I need for my app to login using TouchId, but I don't want the user to select or fallback into Password option. In other words I'd like to hide the 'Enter Password' label in the figure below. Thanks.
The answer is "Yes".You can hide the "Enter password"...
Try the following code snippet,
var LocalAuthentication = LAContext()
LocalAuthentication.localizedFallbackTitle = "" // Add this line
if LocalAuthentication.canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: &errorMsg){
Add this line before checking for the policy....
LocalAuthentication.localizedFallbackTitle = ""
Hope this might help you..
As far as I know there is no way to hide the password option. Although you can use the device passcode as the fall back.
Please note that the terminology "Passcode" and "Password" refers to different thing in TouchID integration.
"Password" is used for LocalAuthentication approach for integrating TouchID and refering to the applications password as fallback method.
While "Passcode" is referring to the passcode to unlock the device and authenticate purchase in app store.To use the method, you have to store some information to the device's keychain and retrieve it via Touch ID authentication.
See more about these two approaches here
iOS 9 Edit
Based on this answer, iOS 9 provide a new option to hide the passcode option.
For iOS 9, two new policies have been added that do not fallback to passcode. These policies are kSecAccessControlTouchIDAny and kSecAccessControlTouchIDCurrentSet
Per documentation from LocalAuthentication.LAContext:
/// Fallback button title.
/// #discussion Allows fallback button title customization. A default title "Enter Password" is used when
/// this property is left nil. If set to empty string, the button will be hidden.
open var localizedFallbackTitle: String?

SA_OAuthTwitterEngine login keyboard doesn't show after first launch

I'm using the SA_OAuthTwitterEngine to integrate Twitter into on of my iPhone apps. Loggin in and sending tweets are working fine. But, when I completely terminate my app so it will start up from the beginning, I can't login again using the SA_OAuthTwitterController because the keyboard will not show up. The input field also doesn't respond to the Mac keyboard when using the simulator.
I've searched for similar problems, but they don't help me out. I've found a lot of similar problems, where calling makeKeyAndVisible for the app delegate window solved it. This doesn't work for me. If I set the modalview's alpha to .2, I also don't see the keyboard behind the view controller.
Weirdest thing is that everything works after a fresh reinstall for as many times as I want, but after I've terminated the app, the keyboard doesn't show op anymore.
Can anyone point me in the right direction?
Thanks in advance!

login form in iphone native application

I am trying to do the login form I have created two uitextfields for username ,password and one uibutton for login. when I enter password in password textfield I want to display all the text as '*' or any special characters like in the following images
Is there any default ways in sdk to do this or we have to do it logically if any give me some sample codes? Thanks in advance
The UITextInputField conforms to the UITextInputTraits protocol, which means you can use the following to tell it to display "*"s:
[passwordTextInputField setSecureTextEntry:YES];
Open you NIB-File in Interface-Builder, mark your UITextField and open the Inspector (Tools > Inspector). In the very left Tab (Attributes) set the value of "Secure" to TRUE.
See the Screenshot below:
Programmaticaly you can use the following line of Code:
password.secureTextEntry = TRUE
Where password is your UITextField.
You can use [myTextField setSecureTextEntry:YES] which is part of the UITextInputTraits protocol whom UITextField adhere.
Don't know of a "free" way to change the secure character, though.