Trendyol / ios-guidelines

125 stars 12 forks source link

if let - guard let shorthand misusage #74

Closed wynioux closed 1 month ago

wynioux commented 2 months ago

A short summary of issue: In our guideline there is a misuse of optional binding using if let foo = foo { ... } and guard let foo = foo else { ... }.

Reasoning and motivation: After release of Swift 5.7 we can use new if let foo { ... } and guard let foo else { ... } shorthand syntax as our guideline mentioned here.

Sources: swift-evolution

eminozkalaycioglu1 commented 2 months ago

Yes, i agree. Thanks for your attention :) We'll fix it with this MR.