Skip to content

Commit

Permalink
[#26] Add surveyquestion view
Browse files Browse the repository at this point in the history
  • Loading branch information
blyscuit committed Jan 17, 2023
1 parent 397ef38 commit 5e0aef7
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
12 changes: 12 additions & 0 deletions iosApp/Survey.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
09D09DD329682CAE009F88AF /* SurveyDetailScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09D09DD129682C98009F88AF /* SurveyDetailScreen.swift */; };
09D09DD429682CBC009F88AF /* ViewId+SurveyDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09D09DBD2967EA5F009F88AF /* ViewId+SurveyDetail.swift */; };
09D09DD529682CBF009F88AF /* ViewId+SurveyDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09D09DBD2967EA5F009F88AF /* ViewId+SurveyDetail.swift */; };
09D09DFD296E6B35009F88AF /* SurveyQuestionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09D09DFC296E6B35009F88AF /* SurveyQuestionView.swift */; };
09E6ABF32951D105007F1EE3 /* KIF+Swift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09E6ABF12951D103007F1EE3 /* KIF+Swift.swift */; };
09E6ABFD2951D32F007F1EE3 /* ViewId.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09636B1428D8148C00A5CB97 /* ViewId.swift */; };
09E6ABFE2951D333007F1EE3 /* ViewId+General.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09636B2F28D8267D00A5CB97 /* ViewId+General.swift */; };
Expand Down Expand Up @@ -303,6 +304,7 @@
09D09DCB29682965009F88AF /* SurveyDetailSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SurveyDetailSpec.swift; sourceTree = "<group>"; };
09D09DCD29682B78009F88AF /* SurveyItemOverlayView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SurveyItemOverlayView.swift; sourceTree = "<group>"; };
09D09DD129682C98009F88AF /* SurveyDetailScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SurveyDetailScreen.swift; sourceTree = "<group>"; };
09D09DFC296E6B35009F88AF /* SurveyQuestionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SurveyQuestionView.swift; sourceTree = "<group>"; };
09E6ABE42951CF3E007F1EE3 /* SurveyKIFUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SurveyKIFUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
09E6ABF12951D103007F1EE3 /* KIF+Swift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "KIF+Swift.swift"; sourceTree = "<group>"; };
09E6AC0B2951D5DD007F1EE3 /* AccountSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountSpec.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -865,6 +867,7 @@
children = (
09D09DBB2967E843009F88AF /* SurveyDetailView.swift */,
09D09DC7296817E2009F88AF /* SurveyDetailImage.swift */,
09D09DFB296E6B24009F88AF /* SurveyQuestion */,
);
path = SurveyDetail;
sourceTree = "<group>";
Expand All @@ -878,6 +881,14 @@
path = SurveyItem;
sourceTree = "<group>";
};
09D09DFB296E6B24009F88AF /* SurveyQuestion */ = {
isa = PBXGroup;
children = (
09D09DFC296E6B35009F88AF /* SurveyQuestionView.swift */,
);
path = SurveyQuestion;
sourceTree = "<group>";
};
09E6ABE52951CF3E007F1EE3 /* SurveyKIFUITests */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -1854,6 +1865,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
09D09DFD296E6B35009F88AF /* SurveyQuestionView.swift in Sources */,
0982A80729278E9000FC1976 /* SurveyHeaderLoading.swift in Sources */,
09FE26D3294C1906005A7F85 /* ViewDidLoadModifier.swift in Sources */,
09CE772728E2C44D00EAA9EE /* View+BackButton.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// SurveyQuestionView.swift
// Survey
//
// Created by Bliss on 11/1/23.
// Copyright © 2023 Nimble. All rights reserved.
//

import SwiftUI

struct SurveyQuestionView: View {

var body: some View {
VStack {
Text("1/5")
.font(.boldMedium)
.foregroundColor(.white)
.opacity(0.5)
Text("")
.padding(.top, .tinyPadding)
Spacer()
HStack {
Spacer()
Button {
// TODO: Add action when press next
} label: {
Assets.nextButton
.image
.resizable()
.frame(width: 56.0, height: 56.0)
}
.padding(.bottom, .mediumPadding)
.accessibility(.surveyDetail(.startButton))
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ extension CGFloat {
static var lineSpacing: CGFloat = 16.0
/// 20.0
static var itemSpacing: CGFloat = 20.0
/// 8.0
static var tinyPadding: CGFloat = 8.0
/// 20.0
static var smallPadding: CGFloat = 20.0
/// 24.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ extension Font {
/// Weight: 400, Size: 13.0
static let regularSmall: Font = .neuzei(size: 13.0)

/// Weight: 800, Size: 15.0
static let boldMedium: Font = .neuzei(.bold, size: 15.0)

/// Weight: 400, Size: 17.0
static let regularBody: Font = .neuzei()

Expand Down

0 comments on commit 5e0aef7

Please sign in to comment.