-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
创建到扬声器阵列的绑定。在预览中创建静态扬声器数据,并将其传递给初始化程序。MeetingFooterView
- Loading branch information
1 parent
bca5d90
commit 4319661
Showing
5 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.27 KB
(100%)
...eproj/project.xcworkspace/xcuserdata/shiyulong.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// MeetingFooterView.swift | ||
// SwiftUIPro | ||
// | ||
// Created by 石玉龙 on 2021/1/6. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct MeetingFooterView: View { | ||
@Binding var speakers:[ScrumTimer.Speaker] | ||
var body: some View { | ||
HStack{ | ||
Text("Speaker 1 of 3") | ||
Button(action: {}) { | ||
Image(systemName: "forward.fill") | ||
} | ||
.accessibilityLabel(Text("Next speaker")) | ||
} | ||
} | ||
} | ||
|
||
struct MeetingFooterView_Previews: PreviewProvider { | ||
static var speakers=[ScrumTimer.Speaker(name: "Kim", isCompleted: false),ScrumTimer.Speaker(name: "Bill", isCompleted: false)] | ||
static var previews: some View { | ||
MeetingFooterView(speakers: .constant(speakers)) | ||
.previewLayout(.sizeThatFits) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters