These changes were made so that the user of SwiftRant can use the VoteState enum instead of the Int everywhere (just like it was done in RantInFeed).
I've pulled the VoteState enum out of RantInFeed, so that it can be used more generally.
All models that had the voteState: Int property, are changed so that they have a voteState: VoteState computed propery and a voteStateRaw: Int stored property.
The initializers of the models were adjusted for that change.
These changes were made so that the user of SwiftRant can use the VoteState enum instead of the Int everywhere (just like it was done in RantInFeed).
I've pulled the VoteState enum out of RantInFeed, so that it can be used more generally. All models that had the
voteState: Int
property, are changed so that they have avoteState: VoteState
computed propery and avoteStateRaw: Int
stored property. The initializers of the models were adjusted for that change.This is a breaking change.