SwiftUI Button Basics (2024)

Поділитися
Вставка
  • Опубліковано 16 жов 2024

КОМЕНТАРІ • 11

  • @CodeWithChris
    @CodeWithChris  5 місяців тому

    👋 Our "Launch Your First App" program will help you build up your iOS skills to publish your very own feature rich app even if you’re a beginner starting from scratch. cwc.to/youtubeoffer

  • @goldenpantherstudio
    @goldenpantherstudio 7 місяців тому

    Amazing job, great explanation, you are the coding hero!

  • @georgekopadze791
    @georgekopadze791 8 місяців тому

    Great video series. thank you for your effort. One quick question, what theme do you use, can you share it to us? Thanks a lot

  • @Thachosenone40
    @Thachosenone40 8 місяців тому

    Great video Chris! Is there a way to combine two sf symbols into one? I am trying to make a custom back button with the chevron.left and house.fill into one backBarButton…thanks!

    • @CodeWithChris
      @CodeWithChris  8 місяців тому

      Hello, thank you for taking the time to comment, I'm not sure if this is possible. Personally I haven't tried it yet. But maybe a custom icon will be a much better approach?
      -- Joash

    • @Thachosenone40
      @Thachosenone40 8 місяців тому

      @@CodeWithChris thank you so much for the response, the custom symbol approach is my next approach. I was able to get it to work in UIKit by placing the symbols into a container and assigning them to a button. SwiftUI is proving to be a bit more difficult

  • @RoomyNews
    @RoomyNews 4 місяці тому +1

    Anyone knows how to change buttons position? Please tell me how…

    • @saraafricano3055
      @saraafricano3055 3 місяці тому

      HStack, VStack, maybe also try some Padding? It depends

  • @danielcrompton7818
    @danielcrompton7818 6 місяців тому +2

    Hey Chris, very confusing... When I try to autocomplete the .bordered and others, nothing appears! However it does actually work saying this property may not be available in the context... Any reason why?
    HStack {
    TextField("What are you looking for?", text: $query)
    .textFieldStyle(.roundedBorder)
    Button("Go") {
    // TODO
    }
    .buttonStyle(.borderedProminent) // Defaults to autocompleting `_ style: PrimitiveButtonStyle`
    }

    • @JOAO-bv4pe
      @JOAO-bv4pe 6 місяців тому +1

      Same happens to mine, any idea of what it could be?

    • @Stevefrdnt
      @Stevefrdnt 6 місяців тому +1

      Yeah this also happen to me, and somehow I can't find any solution for the issue although force typing it wont give any error to the app, but please reply this comment if anyone know what causing the issue