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 a discrepancy in indentation behavior between Xcode and this plugin when working with SwiftUI code. Specifically, this plugin introduces extra indentation in certain cases, as shown in the following example.
This plugin:
Button(action:{print("clicked")
isShowingSheet2 =true}){Text("click me")}.buttonStyle(.bordered)}.padding(12).frame(width:200, height:400).sheet(isPresented:Binding(get:{ isShowingSheet2 },
set:{ v in isShowingSheet2 = v }){Text("sheet2")})
Xcode (Playground):
Button(action:{print("clicked")
isShowingSheet2 =true}){Text("click me")}.buttonStyle(.bordered)}.padding(12).frame(width:200, height:400).sheet(isPresented:Binding(get:{ isShowingSheet2 },
set:{ v in isShowingSheet2 = v }){Text("sheet2")})
I haven't looked into it deeply yet, but I feel like this might be an issue with how closures inside parentheses are handled.
Does this plugin aim to match Xcode's indentation style as a policy?
If so, I will try creating a PR to address this issue.
The text was updated successfully, but these errors were encountered:
I noticed a discrepancy in indentation behavior between Xcode and this plugin when working with SwiftUI code. Specifically, this plugin introduces extra indentation in certain cases, as shown in the following example.
This plugin:
Xcode (Playground):
I haven't looked into it deeply yet, but I feel like this might be an issue with how closures inside parentheses are handled.
Does this plugin aim to match Xcode's indentation style as a policy?
If so, I will try creating a PR to address this issue.
The text was updated successfully, but these errors were encountered: