Access passcode locked iPhone with broken screen without jailbreaking
Solution 1: USB keyboard

You can use the Apple Lightning to USB Camera Adapter.


Connect the adapter to your iPhone.
Connect a USB keyboard to the adapter.
Enter your passcode




Solution 2: Bluetooth keyboard

If you had connected a bluetooth keyboard to your iPhone before you can use it to enter your iPhone's passcode.


Make sure your iPhone has bluetooth enabled
Turn on your keyboard and pair wait for it to connect to your iPhone.
Enter your unlock passcode.