iOS
22 notes.
Flutter: the Android keyboard won’t open on a field with an iOS-only TextInputAction
A TextField with TextInputAction.join works on iOS. In a debug build on Android, tapping it gives the field focus and nothing else: no keyboard, no cursor, and nothing in logcat. The release build of the same code is fine. It looks like a broken emulator keyboard and it is one line of Dart.
Test Face ID in the iOS Simulator from the command line
The Simulator's Features menu has three Face ID items: Enrolled, Matching Face and Non-matching Face. All three are notifications you can post with simctl, so a script can enroll a face, wait for the prompt and answer it. The one thing the simulator will not do is enforce biometric access control on a Keychain item.
Flutter: Check Internet Connection with connectivity_plus
To check the internet connection in a Flutter app, use the connectivity_plus package. It tells you whether the phone is on Wi-Fi, mobile data or no network at all, and when that changes. It can't tell you the internet actually works, so your requests still need to handle failure.
SwiftUI: Check Internet Connection with NWPathMonitor
To check the internet connection in a SwiftUI app, use NWPathMonitor from the Network framework. It tells you whether a network path is available, whether it is expensive or in Low Data Mode, and when any of that changes. It can't tell you the internet is actually reachable, so your requests still need to handle failure.
Flutter Login and Signup Screen tutorial: iOS + Android + PHP 8 + Biometrics
A Flutter app for iOS and Android with signup, login, logout and Face ID or fingerprint unlock, talking to a PHP 8 API. The session token goes in the Keychain or the Android Keystore, and the forms work with password AutoFill on both platforms.
iOS Login and Signup Screen tutorial: SwiftUI + iOS 26 + PHP 8 + Face ID
Eleven years after the Swift 2 version, here is the login and signup tutorial again: SwiftUI screens, async/await networking, the session token in the Keychain, Face ID unlock, and a PHP 8 API that stores passwords and tokens the way they should be stored.
SwiftUI navigation bars on iOS 26: style the system bar, don’t hide it
Hiding the navigation bar to draw your own has always cost you swipe to go back. On iOS 26 both swipe gestures stop working, and the usual delegate workaround never even gets asked. Here's what the system bar can do instead, and where a custom bar still makes sense.
SwiftUI: Create a Custom Navigation Bar
In this article we create a reusable navigation bar in SwiftUI: a centred or large title, leading and trailing buttons, your own colours, and a Back button that actually pops the screen. It's applied as a modifier, so it sits where the system bar would.
iOS Login and Signup Screen tutorial : Swift 2 + XCode 7 + iOS 9 + JSON
This tutorial will guide you to create a simple app with a Signup and Login screen which takes username and password from the user and then posts it to an url and parse the JSON response.
iOS Login and Signup Screen tutorial : Swift + XCode 6 + iOS 8 + JSON
This tutorial will guide you to create a simple app with a Signup and Login screen which takes username and password from the user and then posts it to an url and parse the JSON response. We will have three view controllers for this project, Signup, Login and Home.
iOS Google Maps: Set Camera to show all Markers
The intend is to set the boundaries of the map to focus on all the markers. The 'GMSMapView' class used to have a method 'markers' which returned all…
iOS: Load custom UITableViewCell with Nib
Using the interface builder i created a custom 'UITableViewCell' named 'MyCustomCellNib', with a custom class file 'MyCustomCell' inherited from 'UITableViewCell'. This is code i used to load the cell with the nib.