当前位置:网站首页>SwiftUI 4 新功能之掌握 WeatherKit 和 Swift Charts
SwiftUI 4 新功能之掌握 WeatherKit 和 Swift Charts
2022-07-07 09:46:00 【知识大胖】
SwiftUI 4 新功能之掌握 WeatherKit 和 Swift Charts
今年在 WWDC22 上有很多令人兴奋的新框架和 API 让我们投入其中。然而,我对 WeatherKit 和 Swift Charts 感到非常兴奋,因为我们现在终于有了对天气数据和绘制数据集的原生 1 方支持。
在本文中,我们将研究如何将两者结合起来以可视化我们的天气数据。距离主题演讲已经过去了 30 个小时,所以请记住,您看到的代码可能会在接下来的几个月内发生变化。我还遇到了一些不受支持的图表命令,这些命令会引发致命错误。
Swift Charts

那么什么是 Swift 图表?它是一种在各种图表样式中轻松简单地绘制数据的方法(截至撰写本文时;不支持饼图、径向图等),还支持所有可爱的可访问性功能、动画等。
在过去,我不得不编写自己的图表或引入 3rd 方依赖项来实现这一点,即便如此,可访问性功能和动画也没有完全考虑到。
天气套件
Apple 早在 2020 年 3 月就收购了流行的 Dark Sky 天气应用程序,这让开发人员想知道什么会取代已退役的 Dark Sky API,现在我们有了官方答案。开发人员现在可以使用原生的、以隐私为中心的解决方案,而不是依赖第三方提供商。
即使在这个早期的 beta 阶段,文档也显示 API 非常全面,涵盖了一系列天气数据、警报
边栏推荐
- Half of the people don't know the difference between for and foreach???
- STM32 entry development NEC infrared protocol decoding (ultra low cost wireless transmission scheme)
- 解决VSCode只能开两个标签页的问题
- Technology sharing | packet capturing analysis TCP protocol
- Two week selection of tdengine community issues | phase II
- 自律,提升自制力原来也有方法
- QT implements the delete method of the container
- EasyUI learn to organize notes
- 深度学习秋招面试题集锦(一)
- La voie du succès de la R & D des entreprises Internet à l’échelle des milliers de personnes
猜你喜欢

一起探索云服务之云数据库

请查收.NET MAUI 的最新学习资源

OneDNS助力高校行业网络安全

Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive

聊聊SOC启动(九) 为uboot 添加新的board

Apprentissage comparatif non supervisé des caractéristiques visuelles par les assignations de groupes de contrôle

Suggestions on one-stop development of testing life

Technology sharing | packet capturing analysis TCP protocol

Talk about SOC startup (x) kernel startup pilot knowledge

Using ENSP to do MPLS pseudo wire test
随机推荐
‘module‘ object is not callable错误
Tsinghua Yaoban programmers, online marriage was scolded?
Le Cluster kubernets en cours d'exécution veut ajuster l'adresse du segment réseau du pod
关于测试人生的一站式发展建议
【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)
sink 消费 到 MySQL, 数据库表里面已经设置了 自增主键, flink 里面,如何 操作?
Technology sharing | packet capturing analysis TCP protocol
Talk about SOC startup (11) kernel initialization
Distributed database master-slave configuration (MySQL)
简单介绍一下闭包及它的一些应用场景
R语言可视化分面图、假设检验、多变量分组t检验、可视化多变量分组分面箱图(faceting boxplot)并添加显著性水平、添加抖动数据点(jitter points)
Suggestions on one-stop development of testing life
Using ENSP to do MPLS pseudo wire test
【问道】编译原理
深度学习秋招面试题集锦(一)
Half of the people don't know the difference between for and foreach???
[system design] index monitoring and alarm system
Talk about SOC startup (VII) uboot startup process III
The running kubernetes cluster wants to adjust the network segment address of pod
Activity lifecycle