can i use a att sim in a t-mobile iPhone xr

Can I use my iPhone 7 att sim in a iphone xr that was originally on T Mobile

iPhone

Follow this Question