Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Gerardo Marx | 05b30cf8e5 | 2 months ago |
Before Width: | Height: | Size: 155 KiB |
@ -0,0 +1,61 @@
|
|||||||
|
# Xcode specific
|
||||||
|
.DS_Store
|
||||||
|
*.xcuserstate
|
||||||
|
*.xcscmblueprint
|
||||||
|
*.swp
|
||||||
|
*.mode1v3
|
||||||
|
*.mode2v3
|
||||||
|
*.perspectivev3
|
||||||
|
|
||||||
|
# User-specific settings
|
||||||
|
xcuserdata/
|
||||||
|
*.xcworkspace/xcuserdata/
|
||||||
|
|
||||||
|
# Xcode build
|
||||||
|
build/
|
||||||
|
*.ipa
|
||||||
|
*.dSYM.zip
|
||||||
|
*.dSYM
|
||||||
|
|
||||||
|
# CocoaPods
|
||||||
|
Pods/
|
||||||
|
Podfile.lock
|
||||||
|
|
||||||
|
# Carthage
|
||||||
|
Carthage/Build/
|
||||||
|
|
||||||
|
# Swift Package Manager
|
||||||
|
.build/
|
||||||
|
DerivedData/
|
||||||
|
SourcePackages/
|
||||||
|
Package.resolved
|
||||||
|
|
||||||
|
# Fastlane
|
||||||
|
fastlane/report.xml
|
||||||
|
fastlane/Preview.html
|
||||||
|
fastlane/screenshots
|
||||||
|
fastlane/test_output
|
||||||
|
|
||||||
|
# Generated files
|
||||||
|
*.moved-aside
|
||||||
|
*.hmap
|
||||||
|
*.ipa
|
||||||
|
*.xcuserdatad
|
||||||
|
*.localized
|
||||||
|
*.xcworkspacedata
|
||||||
|
|
||||||
|
# Temporary and System files
|
||||||
|
*.tmp
|
||||||
|
*.log
|
||||||
|
*.swp
|
||||||
|
*.lock
|
||||||
|
*.lock/
|
||||||
|
*.lck
|
||||||
|
*.sync
|
||||||
|
|
||||||
|
# Playgrounds
|
||||||
|
timeline.xctimeline
|
||||||
|
playground.xcworkspace
|
||||||
|
|
||||||
|
# SwiftPM
|
||||||
|
.swiftpm/
|
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "ResearchKit"]
|
||||||
|
path = ResearchKit
|
||||||
|
url = https://github.com/ResearchKit/ResearchKit.git
|
Before Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 353 KiB |
Before Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 202 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 97 KiB |
Before Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 68 KiB |
@ -1,24 +1,46 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
||||||
|
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
|
||||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
|
<capability name="System colors in document resources" minToolsVersion="11.0"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<scenes>
|
<scenes>
|
||||||
<!--View Controller-->
|
<!--View Controller-->
|
||||||
<scene sceneID="tne-QT-ifu">
|
<scene sceneID="tne-QT-ifu">
|
||||||
<objects>
|
<objects>
|
||||||
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
|
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="RK_Setup_Git" customModuleProvider="target" sceneMemberID="viewController">
|
||||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
|
<subviews>
|
||||||
|
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="rr2-t4-Uvi">
|
||||||
|
<rect key="frame" x="87" y="706" width="218" height="35"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<state key="normal" title="Button"/>
|
||||||
|
<buttonConfiguration key="configuration" style="plain" title="Button"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="startSurveyTapped:" destination="BYZ-38-t0r" eventType="touchUpInside" id="l4p-Pq-Qni"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
|
</subviews>
|
||||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||||
|
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
||||||
</view>
|
</view>
|
||||||
|
<connections>
|
||||||
|
<outlet property="startTapped" destination="rr2-t4-Uvi" id="LDX-yP-Jiu"/>
|
||||||
|
</connections>
|
||||||
</viewController>
|
</viewController>
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||||
</objects>
|
</objects>
|
||||||
|
<point key="canvasLocation" x="93.89312977099236" y="3.5211267605633805"/>
|
||||||
</scene>
|
</scene>
|
||||||
</scenes>
|
</scenes>
|
||||||
|
<resources>
|
||||||
|
<systemColor name="systemBackgroundColor">
|
||||||
|
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
</systemColor>
|
||||||
|
</resources>
|
||||||
</document>
|
</document>
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
//
|
||||||
|
// SurveyTask.swift
|
||||||
|
// RK-Setup-Git
|
||||||
|
//
|
||||||
|
// Created by Gerardo Marx Chávez Campos on 11/10/24.
|
||||||
|
//
|
||||||
|
|
||||||
|
import ResearchKit
|
||||||
|
|
||||||
|
struct SurveyTaskProvider {
|
||||||
|
|
||||||
|
static func createHeightFormTask() -> ORKOrderedTask {
|
||||||
|
|
||||||
|
let sectionHeaderFormItem = ORKFormItem(sectionTitle: "What's your height?")
|
||||||
|
let heightQuestionFormItem = ORKFormItem(identifier: "heightQuestionFormItem1", text: nil, answerFormat: ORKAnswerFormat.heightAnswerFormat())
|
||||||
|
|
||||||
|
heightQuestionFormItem.placeholder = "Tap here"
|
||||||
|
|
||||||
|
let formStep = ORKFormStep(identifier: "HeighQuestionIdentifier",
|
||||||
|
title: "Height info",
|
||||||
|
text: "Please answer the questions")
|
||||||
|
|
||||||
|
formStep.formItems = [sectionHeaderFormItem, heightQuestionFormItem]
|
||||||
|
|
||||||
|
return ORKOrderedTask(identifier: "Survey Task", steps: [formStep])
|
||||||
|
}
|
||||||
|
}
|
Before Width: | Height: | Size: 208 KiB |
Before Width: | Height: | Size: 2.3 MiB |
Before Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 229 KiB |
Before Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 122 KiB |