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
Смотрите видео SwiftFormat github arm64, Intel, ARM SwiftFormat goes above and beyond what you might expect онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь SwiftUI UX 04 Июль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 310 раз и оно понравилось 2 людям.