SwiftFormat github arm64, Intel, ARM SwiftFormat goes above and beyond what you might expect

Published: 04 July 2022
on channel: SwiftUI UX
310
2

https://github.com/nicklockwood/Swift...

SwiftFormat goes above and beyond what you might expect from a code formatter. In addition to adjusting white space it can insert or remove implicit self, remove redundant parentheses, and correct many other deviations from the standard Swift idioms.

1. Add the script to build phase

UNAME_MACHINE="$(/usr/bin/uname -m)"

if [[ "${UNAME_MACHINE}" == "arm64" ]]
then
On ARM
PATH=${PATH}:/opt/homebrew/bin
else
On Intel
PATH=${PATH}:/usr/local/bin
fi

mint run swiftformat . --config .swiftformat

2. Create file .swiftformat with settings if you need or get rid of it from the run line
Enable options
--enable spaceAroundBraces
--enable spaceAroundBrackets

#SwiftFormat #github #arm64 #Intel #swift #swiftui #uikit


Watch video SwiftFormat github arm64, Intel, ARM SwiftFormat goes above and beyond what you might expect online without registration, duration hours minute second in high quality. This video was added by user SwiftUI UX 04 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 310 once and liked it 2 people.