how to get device name in swift ios code example Example: get device name swift print(UIDevice.current.name)