Swift makes at leats one thing •more• explicit: what do hasSupplementaryViewAfter/Before do if there is no element with the “cell” category?
In Obj-C, indexOfObjectPassingTest returns NSNotFound, which happens to be max int (not -1!), so After •always• returns false and Before accepts •any• supplemental view.
Is that accidental behavior? Who knows!! In Swift, index returns an optional Int, forcing the choice to use Int.max to be explicit.
What should be implicit? It’s a huge question. Choose wisely.