Follow-up to #381 because GitHub won’t let me reopen it. Fixes #345.
Simplifies the switch statement in StringStyle.update(part:) using the improved interaction between switch and #if in Swift 4.1+. This requires removing Swift 4.0 from the supported versions. I think it’s better not to add new support for Swift 4.1, so that would make the minimum version Swift 4.2.
Follow-up to #381 because GitHub won’t let me reopen it. Fixes #345.
Simplifies the
switch
statement inStringStyle.update(part:)
using the improved interaction between switch and #if in Swift 4.1+. This requires removing Swift 4.0 from the supported versions. I think it’s better not to add new support for Swift 4.1, so that would make the minimum version Swift 4.2.