How to Setup Swift Format on XCode 14

Поділитися
Вставка
  • Опубліковано 2 сер 2024
  • Today we learn how to setup SwiftFormat in our iOS project to automatically format our swift code to follow predefined conventions.
    Resources:
    github.com/nicklockwood/Swift...
    Say Hi on Social Media:
    LinkedIn: / ​​
    Instagram: its_macco?...
    Twitter: / its_macco
    Introduction 00:00
    Install SwiftFormat 01:00
    SwiftFormat Config 03:49
  • Наука та технологія

КОМЕНТАРІ • 12

  • @dodilodi1278
    @dodilodi1278 Рік тому +1

    nice one!
    tutorial suggestion, I believe if you do it, you will be the only one on UA-cam and probably everywhere that did it:
    -explain Build Settings, Build Phases and other similar stuff which is often a hidden solution for Xcode problems. So explain as much of the stuff like "Other linker flags", "Compile sources", "App Groups" as you can. thanks!

    • @EmmanuelOkwara
      @EmmanuelOkwara  Рік тому +1

      Sounds like a great idea.
      I’ll do that. Thank you 😊

  • @junaidkamoka4059
    @junaidkamoka4059 Рік тому

    🔥

  • @juanmanuelgentili2152
    @juanmanuelgentili2152 Рік тому

    Really nice content! Congrats.
    Random question: which program do you use to record your screen + camera?

  • @DaveJacobseniOS
    @DaveJacobseniOS Рік тому

    Good stuff Emmanuel! I have seen this repo before but never seen it in action.

    • @EmmanuelOkwara
      @EmmanuelOkwara  Рік тому

      Thanks Dave
      It’s a pretty powerful repo 😄

  • @ipaktulane4748
    @ipaktulane4748 3 місяці тому +3

    # format options
    --binarygrouping none
    --decimalgrouping none
    --octalgrouping none
    --exponentcase lowercase
    --header ignore
    --ifdef outdent
    --indent 2
    --maxwidth 120
    --self init-only
    --stripunusedargs unnamed-only
    --swiftversion 5
    --trimwhitespace always
    --wraparguments before-first
    --wrapparameters before-first
    --wrapcollections before-first
    --xcodeindentation enabled
    --nospaceoperators ...,..>,..<
    # rules
    --enable isEmpty
    --enable blankLineAfterImports
    --disable wrapArguments
    --disable trailingCommas

  • @vebbis5961
    @vebbis5961 11 місяців тому

    Good tutorial! Hate when people clip every other second and just spell out definitions instead of explaining things their own way.

  • @user-un6en4gb6j
    @user-un6en4gb6j Рік тому

    Updated install code: brew install swift-format

  • @roh9934
    @roh9934 Рік тому

    hey macco, im also an iOS engineer. Will you be interested in paid consultation to me 1 on 1 in your free time. because i want to be like you in future. please reply?

    • @hilalhakani
      @hilalhakani Рік тому

      Ask if you want i can help you for free

    • @EmmanuelOkwara
      @EmmanuelOkwara  Рік тому

      That sounds like a great idea.
      You can send me an email at okwarae.n@gmail.com to discuss further.