Gauge View iOS 16

Поділитися
Вставка
  • Опубліковано 15 лип 2024
  • In this video I am going to introduce you to the new Gauge view that is now available for all apple platforms in iOS 16
    We will be exploring the different options for Linear gauges as well as circular gauges and will compete the video by creating a fun view with a countdown timer to launch a rocket.
    If you want to support my work, you can buy me a coffee :)
    ko-fi.com/stewartlynch
    Table of Contents:
    0:00 Introduction
    3:15 LinearCapacity
    7:40 AccessoryLinear
    9:30 AccesssoryLinearCapacity
    11:37 AccessoryCircular
    14:33 AccessoryCircularCapacity
    15:56 Rocket Launch
    Starter Project Files:
    www.createchsol.com/StarterPro...
    Completed Project:
    github.com/StewartLynch/Gauge...
    Other References:
    Stewart Lynch's UA-cam Channel:
    / stewartlynch
    Stewart Lynch on Twitter:
    / stewartlynch
  • Наука та технологія

КОМЕНТАРІ • 19

  • @nurhidayatulfatihah848
    @nurhidayatulfatihah848 9 місяців тому

    Thanks Stewart, your explanation is really clear and understandable for beginners like me. Continue watching your other video for learning!

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

    Awesome lessons… thank you Stewart

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

    Amazing Tutorial!
    Thanks!

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

    Stewart is a tutorial machine! Thanks so much!

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

    Nice

  • @notarobot-markhunte180
    @notarobot-markhunte180 Рік тому +1

    Hi, thanks for this, you confirmed for me I was using the scaling on accessoryCircularCapacity to resize to a much larger gauge size. I thought I would offer up a tip, the problem with scaling the gauge is the text does not scale well, it becomes pixelated. The tip to get crisp text is to put the gauge in a ZStack
    And don’t code in the gauge labels. In the gauges ZStack you can add your own custom text views etc. which will be centred on the ZStack’s coordinates. You can use .offset(x:,y:) to position them individually if needed. The text views can use the bindings to the gauges values. The end result is a large gauge with crisp text.

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

    Very good! Now if I can figure out how to use the Gauges with URL json data, it will be great.

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

    Nice explanation. I’m thinking I could compare your code on Gauges to Apples docs to gain some insight into the documentation of the closures.

  • @30guarino
    @30guarino Рік тому

    Hey Stewart…. was wondering are you planning to do async/ await with Firestore videos…. (ex: calling onAppear, onChange, task) …. Your playlist on Chris’s channel was fantastic on API async

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

      I have no plans to do that at the moment David. If I do, it will not be until some time in 2023 as I have a lot of other content already planned.

    • @30guarino
      @30guarino Рік тому

      @@StewartLynch no problem…. Thanks

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

    Is there a way to customize the part of the gauges that represent the range of allowed values that is gray by default?

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

      I don't understand the question Mark.

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

      @@StewartLynch If you create a linear gauge from 0 to 10 with a value of 3 and a tint of red, 3/10ths of it will be red and the remaining 7/10ths will be gray. Can I change the gray color?

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

      @@MarkVolkmann OK. I see what you are referring to. I don’t know of any way right now to be able to change that

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

    what theme are you using for Xcode?

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

      I believe it is just the default dark with perhaps an increase in font size.

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

      @@StewartLynch thank you 🙏