Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
How to enable Previews with an ObservedObject
Post Body

Hey guys! New to swift and was wondering how I can have my previews display, while having an observedObject. My err right now is

Cannot convert value of type 'SignUpController.Type' to expected argument type 'SignUpController'

Thanks in advance for the help!

struct UserDashController_Previews: PreviewProvider {

static var previews: some View {

UserDashController(signUpController: SignUpController)

}

}

My ObservedObject is here

@ObservedObject var signUpController: SignUpController

Author
Account Strength
90%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,139
Link Karma
597
Comment Karma
542
Profile updated: 6 days ago
Posts updated: 1 month ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago