var in pattern matching is being removed from Swift
https://github.com/apple/swift-evolution/blob/master/proposals/0003-remove-var-parameters-patterns.md
Needs Review: @SergioEstevao
Reimplemented Settings using ImmuTable.
Based on #4547. Waiting on that to be merged
Actual diff on https://github.com/wordpress-mobile/WordPress-iOS/compare/feature/immutable...feature/immutable-account-settings
I think if you are building a view that's just a table that's really kind of a form, your view controller should only have to specify those cells in a declarative way. The only code there should be how to get a model, turn it into a view…
I replaced all the custom cell wrangling with a new MediaSizeSliderCell and the existing SwitchTableViewCell.
I'm also hoping to extract ImmuTable from #4510 into a separate PR, so I needed to get all the custom cells ready.
Re…
Replace -[UIColor colorWithHexString:] calls with -[UIColor UIColorFromHex:].
The latter should be much faster and errorproof as it doesn't need to parse strings.
Fixes #2958
If a revision is present, that means we're editing the post. Deleting it
would just cause faults and crashes.
Fixes #2951
Previous PR: #2779
/cc @sendhil
When a Jetpack blog appears on the results to sync blogs, we want to see if it's already added in the app as a self hosted site. If that's the case, this will take the blog and transfer it to the acco…
The shortString method will calculate using GMT, so pass a GMT date
Fixes #833
The section for self hosted is always present, since it includes the 'Add Site' row.
If we tried to add/remove the section when the results controller changed, it would crash, as the table's data source section count would remain the …
It seems everything is working and, as a bonus, posts and pages have infinite scrolling again.
But since it practically rewrites the whole NotificationsViewController I could use some code review from someone more familiar with the …