[Pr Required (急需提交)] Modify the Structs to Conform OptionSet Protocol (修改一些结构体以遵从OptionSet协议) #4
Closed
haren724
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now I have some trouble with Filter Result ViewModel. The classes like
现在我在Filter Result ViewModel上遇到了一些问题。比如这种class
need to be converted into
需要被转换成
And then it comes to UI code. Make a full use of the
allOptions
created above to theForEach
然后,对于UI代码的更改,充分利用上面创建的“allOptions”到“ForEach”
Last. The declaration of struct's variable needs to be modified. And because there's no methods in newly created struct anymore, so the
.reset()
call should be changed into= .all
最后一点,需要修改一下结构体变量的声明方法。而且因为新创建的结构体中不再有内部方法,所以
.reset()
调用应该更改为= .all
Beta Was this translation helpful? Give feedback.
All reactions