do you have to unlock your phone to show this ID?
Do you have to unlock your phone to show your digital ID?
Because in the US with privacy laws and illegal search and seizure you've basically handed all of your info over. Cops can't make you unlock your phone, against your will, in order for them to find things that might incriminate you. But if you have to unlock it to show your ID they'll take it from there.
The Electronic Frontier Foundation has a lot of info, here's one:
https://ssd.eff.org/module/how-to-get-to-know-iphone-privacy-and-security-settings
and an excerpt, not exactly in the same subject, but it hints at what could happen if you unlock your phone to show ID:
"In the United States, using a biometric—like your face scan or fingerprint—to unlock your phone may also compromise legal protections for the contents of your phone afforded to you under the Fifth Amendment privilege against compelled incrimination. Under current law—which is still in flux—using a memorized passcode generally provides a stronger legal footing to push back against a court order of compelled device unlocking/decryption. "