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