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 - Наука та технологія
Thanks Stewart, your explanation is really clear and understandable for beginners like me. Continue watching your other video for learning!
Awesome lessons… thank you Stewart
Amazing Tutorial!
Thanks!
Stewart is a tutorial machine! Thanks so much!
Nice
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.
Great tip
Very good! Now if I can figure out how to use the Gauges with URL json data, it will be great.
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.
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
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.
@@StewartLynch no problem…. Thanks
Is there a way to customize the part of the gauges that represent the range of allowed values that is gray by default?
I don't understand the question Mark.
@@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?
@@MarkVolkmann OK. I see what you are referring to. I don’t know of any way right now to be able to change that
what theme are you using for Xcode?
I believe it is just the default dark with perhaps an increase in font size.
@@StewartLynch thank you 🙏