Reply to await call in didSet block Since async is getting deprecated there, you can use Task! didSet { Task { await pinPosition() } } Community Apple Developers Mar ’22