利用 NavigationStack & NavigationLink 切換頁面
SwiftUI 利用 NavigationStack 管理切換多層頁面,它會在畫面的上方長出一條 navigation bar,bar 的左上角則有 back 返回的按鈕,類似以下的 Music App 畫面。
![](https://cdn-images-1.medium.com/max/2400/1*5gqkaQOBQCZHxNzQSzhwUg.png)
These were the top 10 stories published by 彼得潘的 Swift iOS App 開發問題解答集 in September of 2019. You can also dive into daily archives for September of 2019 by using the calendar at the top of this page.