Skip to content

Commit

Permalink
now in a list
Browse files Browse the repository at this point in the history
  • Loading branch information
mike011 committed Oct 18, 2024
1 parent 889a3cb commit 4755f94
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 16 deletions.
27 changes: 15 additions & 12 deletions AppPackages/Settings/Sources/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,24 @@ public struct SettingsView: View {

public var body: some View {
NavigationStack {
HStack {
Text("Rest")
.bold()
Picker("", selection: $restTimeMinutes) {
ForEach(0...5, id: \.self) {
Text("\($0)")
List {
HStack {
Text("Rest")
.bold()
Picker("", selection: $restTimeMinutes) {
ForEach(0...5, id: \.self) {
Text("\($0)")
}
}
}
Text(restTimeMinutes <= 1 ? "minute" : "minutes")
Picker("", selection: $restTimeSeconds) {
ForEach(Array(stride(from: 0, to: 60, by: 5)), id: \.self) {
Text("\($0)")
Text(restTimeMinutes <= 1 ? "minute" : "minutes")
Picker("", selection: $restTimeSeconds) {
ForEach(Array(stride(from: 0, to: 60, by: 5)), id: \.self) {
Text("\($0)")
}
}
Text("seconds")
.fixedSize(horizontal: true, vertical: false)
}
Text("seconds")
}.navigationTitle("Settings")
}
}
Expand Down
8 changes: 4 additions & 4 deletions PeakFit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"PeakFit/Preview Content\"";
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
DEVELOPMENT_TEAM = CY96495443;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = PeakFit/Info.plist;
Expand All @@ -336,7 +336,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.1.0;
PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER)";
PRODUCT_BUNDLE_IDENTIFIER = ca.charland.peakfit;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
Expand All @@ -353,7 +353,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"PeakFit/Preview Content\"";
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
DEVELOPMENT_TEAM = CY96495443;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = PeakFit/Info.plist;
Expand All @@ -367,7 +367,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.1.0;
PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER)";
PRODUCT_BUNDLE_IDENTIFIER = ca.charland.peakfit;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
Expand Down
31 changes: 31 additions & 0 deletions PeakFit.xcodeproj/xcshareddata/xcschemes/PeakFit.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,30 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "69448C7E2C91323E00E1E698"
BuildableName = "PeakFitTests.xctest"
BlueprintName = "PeakFitTests"
ReferencedContainer = "container:PeakFit.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "69448C882C91323E00E1E698"
BuildableName = "PeakFitUITests.xctest"
BlueprintName = "PeakFitUITests"
ReferencedContainer = "container:PeakFit.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -50,6 +74,13 @@
ReferencedContainer = "container:PeakFit.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "PRODUCT_BUNDLE_IDENTIFIER"
value = "ca.charland.peakfit"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down

0 comments on commit 4755f94

Please sign in to comment.