You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that SwiftFormat doesn't format double wrapped optionals that use dot notation correctly. It takes the working code and changes it so it can't compile. Here's an example of working code:
let hello: String?? = "Hello"
let capitalHello = hello??.capitalizedString
After SwiftFormat:
let hello: String?? = "Hello"
let capitalHello = hello ??. capitalizedString
Notice the extra space before and after ??. in the second line. This is reproducible 100% of the time for me.
The text was updated successfully, but these errors were encountered:
I noticed that SwiftFormat doesn't format double wrapped optionals that use dot notation correctly. It takes the working code and changes it so it can't compile. Here's an example of working code:
After SwiftFormat:
Notice the extra space before and after
??.
in the second line. This is reproducible 100% of the time for me.The text was updated successfully, but these errors were encountered: