菜单侧边栏拖拽
This week’s SwiftUI tutorial covers a component that I’ve seen popping up in designs floating around the community lately. I’ll show you briefly how to create your own sidebar menu in SwiftUI. This kind of component pairs well with the new LazyVStack
and LazyHStack
that was released under iOS 14 this year. Let's get into it.
本周的SwiftUI教程涵盖了一个组件,最近我看到它在社区中浮动的设计中突然出现。 我将简要向您展示如何在SwiftUI中创建自己的侧边栏菜单。 这种组件与今年在iOS 14下发布的新LazyVStack
和LazyHStack
很好地配对。 让我们开始吧。
Before getting started, please consider subscribing using this link, and if you aren’t reading this on TrailingClosure.com, please come check us out sometime!
在开始之前,请考虑使用此 链接进行 订阅 ,如果您未在