Post

Replies

Boosts

Views

Activity

Reply to Method to return a generic View type in SwiftUI
I guess this is just my lack of understanding of Swift UI, but "PopulatedHomeScreen and EmptyView are different types, there's no common ancestor type" seems a strange given they both declare conformance to View Although the approaches in the article would work, I would be interested to see if someone with more experience than myself has knowledge of a better approach as I assume this would be a common problem
Jul ’20