Skip to content

Conversation

@mysticvalley
Copy link

Please review above. Thanks.

Please review above. Thanks.
@larrylegend
Copy link
Owner

larrylegend commented May 21, 2019

Hey @mysticvalley. I'm not sure, this code sample still seems to work for me if I open in Xcode 10.2, change Swift version to Swift 4, and build and run on my iOS 12.2 iPhone X. However, there are several other solutions listed in the original context and answer here that might work better in your particular case: https://stackoverflow.com/a/52148520/2024046

(To test reloading, here's what I did:)

    override func viewDidAppear(_ animated: Bool) {
        DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
            [weak self] in
            self?.collectionView.reloadData()
            print("reloaded collection view.")
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants