The iPhone XS and XR feature the ability to use a dual SIM with an eSIM, handy for having both a personal and work number or if you need to switch between cellular data providers such as for international roaming. This article from Apple explains all the details about setting it up:
Nathan Parker