Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why RewardPledgeViewModel can initial property stripeTokenAndErrorProperty like this? #291

Closed
blackchena opened this issue Dec 26, 2017 · 2 comments

Comments

@blackchena
Copy link

fileprivate let stripeTokenAndErrorProperty = MutableProperty(String?.none, Error?.none)

MutableProperty has not the initial method, is it means

MutableProperty((String?.none, Error?.none))
@justinswart
Copy link
Contributor

Hi @blackchena, yes - it's not so clear from the syntax but it initializes the MutableProperty with a tuple type of (String?, Error?):

screen shot 2018-01-02 at 16 57 24

@blackchena
Copy link
Author

Is this swift's syntax feature?,I have not seen it before

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

No branches or pull requests

2 participants