我只有一个带有一个文本的标准列表,右侧有用于导航的箭头。但是在加载列表并显示在屏幕上之后,该列表添加了我认为它们在左侧和右侧添加填充的单元格。但这看起来不太好,所以看起来很滞后!
List {
ForEach(0..<book.chapters) { index in
NavigationLink(destination: ReadingView(book: self.book, chapter: index)){
Text("Kapitel \(index + 1)")
}
}
}
.navigationBarTitle(Text(book.long_name), displayMode: .inline)
Run Code Online (Sandbox Code Playgroud)