generated from shilokuma-inc/template-app-ios
-
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.
Merge pull request #56 from shilokuma-inc/feat/timeLimit
【FEAT】制限時間表示を追加
- Loading branch information
Showing
3 changed files
with
52 additions
and
1 deletion.
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
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,44 @@ | ||
// | ||
// QuizTimeLimitVIew.swift | ||
// PrimePickApp | ||
// | ||
// Created by 村石 拓海 on 2024/05/21. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct QuizTimeLimitVIew: View { | ||
@State private var progress: Double = 0.01 | ||
|
||
var body: some View { | ||
ZStack { | ||
Color.appGreen | ||
.opacity(0.5) | ||
.edgesIgnoringSafeArea(.all) | ||
|
||
ProgressView(value: progress) | ||
.progressViewStyle(LinearProgressViewStyle(tint: .gray)) | ||
.scaleEffect(x: 1, y: 4, anchor: .center) | ||
.padding(.horizontal, 20) | ||
|
||
ZStack { | ||
Text("No Timelimit!") | ||
.font(.largeTitle) | ||
.fontWeight(.heavy) | ||
.foregroundColor(.black) | ||
.offset(x: 2, y: 2) | ||
|
||
Text("No Timelimit!") | ||
.font(.largeTitle) | ||
.fontWeight(.heavy) | ||
.foregroundColor(.white) | ||
} | ||
.padding() | ||
|
||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
QuizTimeLimitVIew() | ||
} |
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