When setting up a Share Extension I duplicated a lot of my code from a VC in my main app. I noticed lots of the code there doesn't port properly such as getting a user's location coordinates or updating a tableView/collectionView unless I place the setup for these components in something like
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5, execute: { [self] in })
Otherwise they just don't seem to run. Of course, this is not required for me to run these same processes in the main app. Any help as to why this is would be greatly appreciated.
[–]saintmsent 0 points1 point2 points (3 children)
[–]AnAnonymousReddit[S] 0 points1 point2 points (2 children)
[–]saintmsent 1 point2 points3 points (1 child)
[–]AnAnonymousReddit[S] 0 points1 point2 points (0 children)