If you run iOS 14 and have problems connecting or maintaining connections to Unifi APs, then there is a compatibility issue which Apple have fixed in their latest update.
From the changelog:
“Improves compatibility with Ubiquiti wireless access points”