Adding to a list of words - Word Scramble SwiftUI Tutorial 4/6

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 7

  • @hekuli
    @hekuli 9 месяцев назад +2

    Any idea why Xcode is always complaining with warnings in the console when typing in text fields? I also get this in my projects and have no idea why.

  • @maestrogoldring1094
    @maestrogoldring1094 9 месяцев назад +1

    When I try to put “\(word.count).circle” into the image, nothing happens. Has something been updated in Xcode recently?

    • @maestrogoldring1094
      @maestrogoldring1094 9 месяцев назад

      Update for others: Xcode v15.0.1, I really don’t know why, but following the rest of the instructions to the end of the video, after everything was type out and trying out other SF symbols, number.circle began to render. This appears to be an Xcode problem and nothing wrong with Paul’s code

  • @thefelix1100
    @thefelix1100 11 месяцев назад

    If I type in e.g. "Hello World" it puts "hello world" in my list. It does.lowercased(), but shouldn´t it remove the whitespace and insert "helloworld" into my list?

    • @thefelix1100
      @thefelix1100 11 месяцев назад +2

      okay answered it my self it just removes leading and trailing white spaces got it

  • @anupdsouza
    @anupdsouza Год назад

    Hey Paul, @3:40 I think it would be better to use isEmpty instead of count

    • @twostraws
      @twostraws  Год назад +5

      I try to introduce only a handful of concepts at a time, to avoid confusing learners. In this case, yes, isEmpty is definitely the better choice, but the difference is going to a tiny fraction of a millisecond 🤷‍♂