Skip to content

Commit 924be9a

Browse files
committed
# Update example.
1 parent 2a57ea5 commit 924be9a

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

Example/Example/Page/Button/EditButtonPage.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ struct EditButtonPage : View {
3737
print(source,destination)
3838
}
3939

40-
4140
}
4241

4342
class dataSource: ObservableObject {

Example/Example/Page/List/ForEachPage.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ struct ForEachPage : View {
1313
let data = (0..<5)
1414

1515
var body: some View {
16-
17-
1816
ForEach(data) { e in
1917
Text("Hello \(e)")
2018
.bold()

Example/Example/Page/Navigation/TableViewPage.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ import SwiftUI
1111
struct TableViewPage : View {
1212

1313
@State private var index = 0 // 默认选中索引
14-
1514
let imgs = ["hot","recommend","search","tag","setting"]
1615

1716
var body: some View {
18-
1917
TabView(selection: $index) {
2018
ForEach(0..<imgs.count) { item in
2119
TabItemPage(index: item)

Example/Example/Page/Picker/PickerPage.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ struct PickerPage : View {
1515

1616
let leftSource = (0..<10).map { $0%2 == 0 ? "🧜‍♀️\($0)":"🧚‍♀️\($0)" }
1717
let rightSource = (11...36).map { String($0 - 1, radix: $0).uppercased() }
18+
1819
var body: some View {
1920
HStack {
2021
VStack {

0 commit comments

Comments
 (0)