Comments (4)
Thanks for replying quickly! It happened to me when using the ternary operator "?:"
the code would go from this: x ? -1 : 1
to x ? - 1: 1
. It may help you knowing that this: x ? 1 : -1
would be formatted as x ? 1: -1
, which is still correct.
Have a good day!
from swimat.
It shouldn't, can you give me more code sample when the issue happened?
from swimat.
It should work, may I ask your app version?
from swimat.
Hi
This issue appears to be happening for me. Xcode Version 12.5 (12E262), Swimat Version 1.7.0 (21), macOS 11.3.
This code:
shapeRect = NSInsetRect(
shapeRect,
CGFloat(
-(borderThickness - 1.0)),
CGFloat(
-(borderThickness - 1.0)))
Is changed to:
shapeRect = NSInsetRect(
shapeRect,
CGFloat(
- (borderThickness - 1.0)),
CGFloat(
- (borderThickness - 1.0)))
The error from Xcode is "Unary operator cannot be separated from its operand".
Cheers
Ian
from swimat.
Related Issues (20)
- Enum cases has wrong indent in `Array`
- Removing semicolons does not work HOT 2
- Formatting when splitting functions onto multiple lines. HOT 1
- Format whole project HOT 12
- Xcode 12 support on macOS 11 HOT 7
- Xcode 12.2 & Big Sur cannot show extension in Editor HOT 10
- Swimat does not appear in the Xcode 12 editor menu HOT 1
- Weird indentation with type inference on methods HOT 1
- cant open swimat HOT 2
- No Swimat in Editor menu HOT 4
- Malicious software HOT 3
- The format of the spaces before and after the dot is incorrect
- Update link for the Swimat file HOT 1
- Curley braces indented incorrectly when formatting spaces.
- Bug With Switch indentation
- SwiftUI modifiers are formatted incorrectly when tabs are set to 2 spaces HOT 1
- Will formatting affect the content in it? HOT 2
- Incorrect format with new Regular expressions (Swift 5.7+)
- Swimat 1.7.0 fails to build on macOS Ventura
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swimat.