Commit 823d96a3 authored by jzhang's avatar jzhang

搭建页面

parent 162d0009
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
692EC41A284C81700043E3EA /* ViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 692EC419284C81700043E3EA /* ViewModel.swift */; };
692EC421284C8D6F0043E3EA /* french.json in Resources */ = {isa = PBXBuildFile; fileRef = 692EC41D284C8D6F0043E3EA /* french.json */; };
692EC422284C8D6F0043E3EA /* english.json in Resources */ = {isa = PBXBuildFile; fileRef = 692EC41E284C8D6F0043E3EA /* english.json */; };
692EC423284C8D6F0043E3EA /* spanish.json in Resources */ = {isa = PBXBuildFile; fileRef = 692EC41F284C8D6F0043E3EA /* spanish.json */; };
694B85BC2848EB4C009BEDE1 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 694B85BB2848EB4C009BEDE1 /* AppDelegate.swift */; }; 694B85BC2848EB4C009BEDE1 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 694B85BB2848EB4C009BEDE1 /* AppDelegate.swift */; };
694B85BE2848EB4C009BEDE1 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 694B85BD2848EB4C009BEDE1 /* SceneDelegate.swift */; }; 694B85BE2848EB4C009BEDE1 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 694B85BD2848EB4C009BEDE1 /* SceneDelegate.swift */; };
694B85C02848EB4C009BEDE1 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 694B85BF2848EB4C009BEDE1 /* ViewController.swift */; }; 694B85C02848EB4C009BEDE1 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 694B85BF2848EB4C009BEDE1 /* ViewController.swift */; };
...@@ -56,6 +60,10 @@ ...@@ -56,6 +60,10 @@
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
39043640BDC7A50986C47129 /* Pods_BreastFeedingDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_BreastFeedingDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 39043640BDC7A50986C47129 /* Pods_BreastFeedingDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_BreastFeedingDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
692EC419284C81700043E3EA /* ViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModel.swift; sourceTree = "<group>"; };
692EC41D284C8D6F0043E3EA /* french.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = french.json; sourceTree = "<group>"; };
692EC41E284C8D6F0043E3EA /* english.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = english.json; sourceTree = "<group>"; };
692EC41F284C8D6F0043E3EA /* spanish.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = spanish.json; sourceTree = "<group>"; };
694B85B82848EB4C009BEDE1 /* BreastFeedingDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BreastFeedingDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 694B85B82848EB4C009BEDE1 /* BreastFeedingDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BreastFeedingDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
694B85BB2848EB4C009BEDE1 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; 694B85BB2848EB4C009BEDE1 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
694B85BD2848EB4C009BEDE1 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; }; 694B85BD2848EB4C009BEDE1 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
...@@ -99,9 +107,20 @@ ...@@ -99,9 +107,20 @@
/* End PBXFrameworksBuildPhase section */ /* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */ /* Begin PBXGroup section */
692EC41B284C8D5F0043E3EA /* Lauguage */ = {
isa = PBXGroup;
children = (
692EC41E284C8D6F0043E3EA /* english.json */,
692EC41D284C8D6F0043E3EA /* french.json */,
692EC41F284C8D6F0043E3EA /* spanish.json */,
);
path = Lauguage;
sourceTree = "<group>";
};
694B85AF2848EB4C009BEDE1 = { 694B85AF2848EB4C009BEDE1 = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
692EC41B284C8D5F0043E3EA /* Lauguage */,
694B85CF2848EB68009BEDE1 /* Flutter */, 694B85CF2848EB68009BEDE1 /* Flutter */,
694B85BA2848EB4C009BEDE1 /* BreastFeedingDemo */, 694B85BA2848EB4C009BEDE1 /* BreastFeedingDemo */,
694B85B92848EB4C009BEDE1 /* Products */, 694B85B92848EB4C009BEDE1 /* Products */,
...@@ -124,6 +143,7 @@ ...@@ -124,6 +143,7 @@
694B85BB2848EB4C009BEDE1 /* AppDelegate.swift */, 694B85BB2848EB4C009BEDE1 /* AppDelegate.swift */,
694B85BD2848EB4C009BEDE1 /* SceneDelegate.swift */, 694B85BD2848EB4C009BEDE1 /* SceneDelegate.swift */,
694B85BF2848EB4C009BEDE1 /* ViewController.swift */, 694B85BF2848EB4C009BEDE1 /* ViewController.swift */,
692EC419284C81700043E3EA /* ViewModel.swift */,
694B85C12848EB4C009BEDE1 /* Main.storyboard */, 694B85C12848EB4C009BEDE1 /* Main.storyboard */,
694B85C42848EB4E009BEDE1 /* Assets.xcassets */, 694B85C42848EB4E009BEDE1 /* Assets.xcassets */,
694B85C62848EB4E009BEDE1 /* LaunchScreen.storyboard */, 694B85C62848EB4E009BEDE1 /* LaunchScreen.storyboard */,
...@@ -227,8 +247,11 @@ ...@@ -227,8 +247,11 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
694B85C82848EB4E009BEDE1 /* LaunchScreen.storyboard in Resources */, 694B85C82848EB4E009BEDE1 /* LaunchScreen.storyboard in Resources */,
692EC421284C8D6F0043E3EA /* french.json in Resources */,
694B85C52848EB4E009BEDE1 /* Assets.xcassets in Resources */, 694B85C52848EB4E009BEDE1 /* Assets.xcassets in Resources */,
694B85C32848EB4C009BEDE1 /* Main.storyboard in Resources */, 694B85C32848EB4C009BEDE1 /* Main.storyboard in Resources */,
692EC423284C8D6F0043E3EA /* spanish.json in Resources */,
692EC422284C8D6F0043E3EA /* english.json in Resources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -266,6 +289,7 @@ ...@@ -266,6 +289,7 @@
files = ( files = (
694B85C02848EB4C009BEDE1 /* ViewController.swift in Sources */, 694B85C02848EB4C009BEDE1 /* ViewController.swift in Sources */,
694B85BC2848EB4C009BEDE1 /* AppDelegate.swift in Sources */, 694B85BC2848EB4C009BEDE1 /* AppDelegate.swift in Sources */,
692EC41A284C81700043E3EA /* ViewModel.swift in Sources */,
694B85BE2848EB4C009BEDE1 /* SceneDelegate.swift in Sources */, 694B85BE2848EB4C009BEDE1 /* SceneDelegate.swift in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
......
...@@ -70,6 +70,11 @@ ...@@ -70,6 +70,11 @@
"scale" : "2x", "scale" : "2x",
"size" : "40x40" "size" : "40x40"
}, },
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{ {
"idiom" : "ipad", "idiom" : "ipad",
"scale" : "2x", "scale" : "2x",
......
{
"images" : [
{
"filename" : "icon_global.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "introduceBg.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "light-btn-bg.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "select.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "swiper1big_new.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
<?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="20037" 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="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_0" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
...@@ -14,21 +14,296 @@ ...@@ -14,21 +14,296 @@
<objects> <objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="BreastFeedingDemo" customModuleProvider="target" sceneMemberID="viewController"> <viewController id="BYZ-38-t0r" customClass="ViewController" customModule="BreastFeedingDemo" 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="414" height="896"/> <rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" image="introduceBg" translatesAutoresizingMaskIntoConstraints="NO" id="mcT-68-7qe">
<rect key="frame" x="0.0" y="124" width="390" height="520"/>
<constraints>
<constraint firstAttribute="height" constant="520" id="t6Y-ye-ovG"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="w7E-9g-1V7">
<rect key="frame" x="7.6666666666666572" y="124" width="375" height="520"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" image="swiper1big_new" translatesAutoresizingMaskIntoConstraints="NO" id="Dhs-89-5Gr">
<rect key="frame" x="0.0" y="0.0" width="375" height="520"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1Ki-U8-ZmO">
<rect key="frame" x="49" y="120" width="118" height="15.666666666666657"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" systemColor="systemGrayColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gBm-Jn-Yuw">
<rect key="frame" x="153" y="310" width="222" height="15.666666666666686"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" systemColor="systemGrayColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5WO-Br-BXn">
<rect key="frame" x="49" y="399" width="286" height="15.666666666666686"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" systemColor="systemGrayColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Asistente de AI de postura de lactancia" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CbT-oK-boe">
<rect key="frame" x="16" y="16" width="343" height="48"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" red="0.96192914249999995" green="0.52479732040000004" blue="0.52205568550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="gBm-Jn-Yuw" secondAttribute="trailing" id="4TA-I1-sfM"/>
<constraint firstAttribute="trailing" secondItem="CbT-oK-boe" secondAttribute="trailing" constant="16" id="AXD-Cc-NSb"/>
<constraint firstItem="gBm-Jn-Yuw" firstAttribute="top" secondItem="w7E-9g-1V7" secondAttribute="top" constant="310" id="DA7-yx-o5I"/>
<constraint firstItem="Dhs-89-5Gr" firstAttribute="leading" secondItem="w7E-9g-1V7" secondAttribute="leading" id="Ion-kS-3Y0"/>
<constraint firstItem="gBm-Jn-Yuw" firstAttribute="leading" secondItem="w7E-9g-1V7" secondAttribute="leading" constant="153" id="ItW-61-PRI"/>
<constraint firstItem="5WO-Br-BXn" firstAttribute="top" secondItem="w7E-9g-1V7" secondAttribute="top" constant="399" id="LIr-i6-HXZ"/>
<constraint firstAttribute="bottom" secondItem="Dhs-89-5Gr" secondAttribute="bottom" id="LtM-6f-eLF"/>
<constraint firstAttribute="trailing" secondItem="Dhs-89-5Gr" secondAttribute="trailing" id="PUl-Fd-F7U"/>
<constraint firstAttribute="width" constant="375" id="QO4-sx-1Zx"/>
<constraint firstItem="CbT-oK-boe" firstAttribute="leading" secondItem="w7E-9g-1V7" secondAttribute="leading" constant="16" id="U2R-ls-Dcw"/>
<constraint firstItem="1Ki-U8-ZmO" firstAttribute="top" secondItem="w7E-9g-1V7" secondAttribute="top" constant="120" id="U2q-r8-X75"/>
<constraint firstItem="CbT-oK-boe" firstAttribute="top" secondItem="w7E-9g-1V7" secondAttribute="top" constant="16" id="WTp-qZ-qXm"/>
<constraint firstItem="5WO-Br-BXn" firstAttribute="leading" secondItem="w7E-9g-1V7" secondAttribute="leading" constant="49" id="Wwg-Eg-LlV"/>
<constraint firstAttribute="trailing" secondItem="5WO-Br-BXn" secondAttribute="trailing" constant="40" id="X5j-VT-ESr"/>
<constraint firstItem="1Ki-U8-ZmO" firstAttribute="leading" secondItem="w7E-9g-1V7" secondAttribute="leading" constant="49" id="bPQ-Ad-gWx"/>
<constraint firstAttribute="trailing" secondItem="1Ki-U8-ZmO" secondAttribute="trailing" constant="208" id="fok-09-ISx"/>
<constraint firstAttribute="height" constant="520" id="l7r-h0-419"/>
<constraint firstItem="Dhs-89-5Gr" firstAttribute="top" secondItem="w7E-9g-1V7" secondAttribute="top" id="qDc-dH-Wlq"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eST-58-iE6">
<rect key="frame" x="88.666666666666686" y="724" width="213" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="213" id="9qN-fM-id3"/>
</constraints>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Empezar ahora">
<backgroundConfiguration key="background" image="light-btn-bg"/>
<color key="baseForegroundColor" red="0.9459709181" green="1" blue="0.97093926880000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</buttonConfiguration>
<connections>
<action selector="tapStart:" destination="BYZ-38-t0r" eventType="touchUpInside" id="bzd-Xi-4RV"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="s7D-fE-2f9">
<rect key="frame" x="334" y="60" width="40" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="JlQ-c6-MTE"/>
<constraint firstAttribute="width" constant="40" id="QfK-8H-GP3"/>
</constraints>
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="">
<backgroundConfiguration key="background" image="icon_global"/>
</buttonConfiguration>
<connections>
<action selector="showPanel:" destination="BYZ-38-t0r" eventType="touchUpInside" id="jam-Ds-LOJ"/>
</connections>
</button>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="PtM-de-bTT">
<rect key="frame" x="289" y="104" width="99" height="120"/>
<subviews>
<view contentMode="scaleToFill" id="kkA-95-vje">
<rect key="frame" x="0.0" y="0.0" width="99" height="40"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vkh-af-zMa">
<rect key="frame" x="0.0" y="39" width="99" height="1"/>
<color key="backgroundColor" systemColor="separatorColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="6mo-Hr-Xgx"/>
</constraints>
</view>
<button opaque="NO" tag="1000" contentMode="scaleToFill" contentHorizontalAlignment="leading" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f1P-II-Bc9">
<rect key="frame" x="0.0" y="0.0" width="99" height="39"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="English">
<color key="titleColor" systemColor="systemGrayColor"/>
</state>
<state key="selected" image="select">
<color key="titleColor" red="0.96192914249999995" green="0.52479732040000004" blue="0.52205568550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="selectLanguage:" destination="BYZ-38-t0r" eventType="touchUpInside" id="935-Zv-J1q"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="epF-G1-rm8"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="f1P-II-Bc9" firstAttribute="top" secondItem="kkA-95-vje" secondAttribute="top" id="2lS-r7-cx4"/>
<constraint firstAttribute="bottom" secondItem="vkh-af-zMa" secondAttribute="bottom" id="42O-VV-iyn"/>
<constraint firstAttribute="trailing" secondItem="f1P-II-Bc9" secondAttribute="trailing" id="7bW-DI-4DL"/>
<constraint firstAttribute="trailing" secondItem="vkh-af-zMa" secondAttribute="trailing" id="WE6-EB-WmY"/>
<constraint firstItem="vkh-af-zMa" firstAttribute="top" secondItem="f1P-II-Bc9" secondAttribute="bottom" id="WOm-dB-vci"/>
<constraint firstItem="vkh-af-zMa" firstAttribute="leading" secondItem="kkA-95-vje" secondAttribute="leading" id="ZVa-z6-r0c"/>
<constraint firstItem="f1P-II-Bc9" firstAttribute="leading" secondItem="kkA-95-vje" secondAttribute="leading" id="fgm-WV-b1z"/>
</constraints>
</view>
<view contentMode="scaleToFill" id="5Rk-KM-CWf">
<rect key="frame" x="0.0" y="40" width="99" height="40"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KTt-nn-85a">
<rect key="frame" x="0.0" y="39" width="99" height="1"/>
<color key="backgroundColor" systemColor="separatorColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="qQP-a0-Ud3"/>
</constraints>
</view>
<button opaque="NO" tag="1001" contentMode="scaleToFill" contentHorizontalAlignment="leading" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Klj-Kh-EXj">
<rect key="frame" x="0.0" y="0.0" width="99" height="39"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Français">
<color key="titleColor" systemColor="systemGrayColor"/>
</state>
<state key="selected" image="select">
<color key="titleColor" red="0.96192914249999995" green="0.52479732040000004" blue="0.52205568550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="selectLanguage:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Amn-zl-noC"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="uOl-Ar-jbg"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="Klj-Kh-EXj" firstAttribute="leading" secondItem="5Rk-KM-CWf" secondAttribute="leading" id="6Yi-gi-UpV"/>
<constraint firstItem="KTt-nn-85a" firstAttribute="top" secondItem="Klj-Kh-EXj" secondAttribute="bottom" id="6wO-ae-1E6"/>
<constraint firstItem="KTt-nn-85a" firstAttribute="leading" secondItem="5Rk-KM-CWf" secondAttribute="leading" id="En2-Cb-q6l"/>
<constraint firstAttribute="trailing" secondItem="KTt-nn-85a" secondAttribute="trailing" id="Iuf-E1-NV1"/>
<constraint firstAttribute="bottom" secondItem="KTt-nn-85a" secondAttribute="bottom" id="JgZ-LU-dGi"/>
<constraint firstAttribute="trailing" secondItem="Klj-Kh-EXj" secondAttribute="trailing" id="Vpy-EO-HS9"/>
<constraint firstItem="Klj-Kh-EXj" firstAttribute="top" secondItem="5Rk-KM-CWf" secondAttribute="top" id="xQ4-iM-2Pi"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DXg-F9-hEj">
<rect key="frame" x="0.0" y="80" width="99" height="40"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="lkt-8D-r6n">
<rect key="frame" x="0.0" y="39" width="99" height="1"/>
<color key="backgroundColor" systemColor="separatorColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="Xcu-jN-x2v"/>
</constraints>
</view>
<button opaque="NO" tag="1002" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Fd7-qZ-tll">
<rect key="frame" x="0.0" y="0.0" width="99" height="39"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Español">
<color key="titleColor" systemColor="systemGrayColor"/>
</state>
<state key="selected" image="select">
<color key="titleColor" red="0.96192914249999995" green="0.52479732040000004" blue="0.52205568550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="selectLanguage:" destination="BYZ-38-t0r" eventType="touchUpInside" id="raS-Qn-s7T"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="Fd7-qZ-tll" firstAttribute="top" secondItem="DXg-F9-hEj" secondAttribute="top" id="fP5-IY-dje"/>
<constraint firstAttribute="trailing" secondItem="lkt-8D-r6n" secondAttribute="trailing" id="fkh-t2-cwO"/>
<constraint firstItem="lkt-8D-r6n" firstAttribute="leading" secondItem="DXg-F9-hEj" secondAttribute="leading" id="kfo-20-uSV"/>
<constraint firstItem="Fd7-qZ-tll" firstAttribute="leading" secondItem="DXg-F9-hEj" secondAttribute="leading" id="mPn-eQ-p07"/>
<constraint firstAttribute="trailing" secondItem="Fd7-qZ-tll" secondAttribute="trailing" id="unI-Xp-T3J"/>
<constraint firstAttribute="bottom" secondItem="lkt-8D-r6n" secondAttribute="bottom" id="wd0-LL-8l4"/>
<constraint firstItem="lkt-8D-r6n" firstAttribute="top" secondItem="Fd7-qZ-tll" secondAttribute="bottom" id="zcw-ja-2CN"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemGray3Color"/>
<constraints>
<constraint firstAttribute="height" constant="120" id="VrS-ly-Lq1"/>
<constraint firstAttribute="width" constant="99" id="XLo-vI-HND"/>
</constraints>
</stackView>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="w7E-9g-1V7" firstAttribute="top" secondItem="mcT-68-7qe" secondAttribute="top" id="8u3-nL-lfb"/>
<constraint firstItem="mcT-68-7qe" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="C24-Bp-i4w"/>
<constraint firstItem="mcT-68-7qe" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="80" id="MxA-7a-iap"/>
<constraint firstItem="s7D-fE-2f9" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="16" id="OYj-Kc-2a3"/>
<constraint firstItem="eST-58-iE6" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="PNl-Pq-tHW"/>
<constraint firstItem="PtM-de-bTT" firstAttribute="top" secondItem="s7D-fE-2f9" secondAttribute="bottom" constant="4" id="PdM-oZ-QLE"/>
<constraint firstItem="w7E-9g-1V7" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="REr-Ze-Id0"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="PtM-de-bTT" secondAttribute="trailing" constant="2" id="dM2-FM-GAa"/>
<constraint firstItem="eST-58-iE6" firstAttribute="top" secondItem="w7E-9g-1V7" secondAttribute="bottom" constant="80" id="q1T-q3-Roh"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="s7D-fE-2f9" secondAttribute="trailing" constant="16" id="qbc-Wx-uHX"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="mcT-68-7qe" secondAttribute="trailing" id="vUo-A3-tmL"/>
</constraints>
</view> </view>
<navigationItem key="navigationItem" id="6kL-xH-Sf2"/> <navigationItem key="navigationItem" id="6kL-xH-Sf2"/>
<connections>
<outlet property="panelV" destination="PtM-de-bTT" id="Yyw-J0-d9K"/>
<outlet property="startBtn" destination="eST-58-iE6" id="xlz-KM-eCt"/>
<outlet property="stepL1" destination="1Ki-U8-ZmO" id="CCh-wm-aah"/>
<outlet property="stepL2" destination="gBm-Jn-Yuw" id="iD6-kJ-MLB"/>
<outlet property="stepL3" destination="5WO-Br-BXn" id="Glc-RQ-YwN"/>
<outlet property="switchBtn" destination="s7D-fE-2f9" id="P9h-6c-Ygk"/>
<outlet property="titleL" destination="CbT-oK-boe" id="ID6-qL-mHk"/>
</connections>
</viewController> </viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
<view contentMode="scaleToFill" id="lKx-pr-I1N">
<rect key="frame" x="0.0" y="0.0" width="99" height="60"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Zns-W3-L6P">
<rect key="frame" x="0.0" y="59" width="99" height="1"/>
<color key="backgroundColor" systemColor="separatorColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="JuW-FQ-ThF"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="English" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mY5-Ft-etR">
<rect key="frame" x="0.0" y="0.0" width="99" height="59"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="GRX-ao-70C"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="Zns-W3-L6P" secondAttribute="trailing" id="A95-8E-mnC"/>
<constraint firstItem="mY5-Ft-etR" firstAttribute="leading" secondItem="lKx-pr-I1N" secondAttribute="leading" id="Fih-eZ-6zC"/>
<constraint firstAttribute="bottom" secondItem="Zns-W3-L6P" secondAttribute="bottom" id="GQ2-JM-h4Q"/>
<constraint firstItem="Zns-W3-L6P" firstAttribute="top" secondItem="mY5-Ft-etR" secondAttribute="bottom" id="n4B-8y-zGd"/>
<constraint firstItem="Zns-W3-L6P" firstAttribute="leading" secondItem="lKx-pr-I1N" secondAttribute="leading" id="qA0-nK-GNo"/>
<constraint firstItem="mY5-Ft-etR" firstAttribute="top" secondItem="lKx-pr-I1N" secondAttribute="top" id="srE-Ih-qet"/>
<constraint firstAttribute="trailing" secondItem="mY5-Ft-etR" secondAttribute="trailing" id="yMK-bg-9xW"/>
</constraints>
</view>
</objects> </objects>
<point key="canvasLocation" x="-601" y="-227"/> <point key="canvasLocation" x="-601.44927536231887" y="-227.00892857142856"/>
</scene> </scene>
</scenes> </scenes>
<resources> <resources>
<image name="icon_global" width="62" height="62"/>
<image name="introduceBg" width="1125" height="1714"/>
<image name="light-btn-bg" width="436" height="78"/>
<image name="select" width="14" height="11"/>
<image name="swiper1big_new" width="750" height="1028"/>
<systemColor name="separatorColor">
<color red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.28999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemBackgroundColor"> <systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor> </systemColor>
<systemColor name="systemGray3Color">
<color red="0.7803921568627451" green="0.7803921568627451" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemGrayColor">
<color red="0.55686274509803924" green="0.55686274509803924" blue="0.57647058823529407" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources> </resources>
</document> </document>
...@@ -11,18 +11,31 @@ import permission_handler_apple ...@@ -11,18 +11,31 @@ import permission_handler_apple
import UIKit import UIKit
class ViewController: UIViewController { class ViewController: UIViewController {
@IBOutlet weak var titleL: UILabel!
@IBOutlet weak var stepL1: UILabel!
@IBOutlet weak var stepL2: UILabel!
@IBOutlet weak var stepL3: UILabel!
@IBOutlet weak var startBtn: UIButton!
@IBOutlet weak var panelV: UIStackView!
@IBOutlet weak var switchBtn: UIButton!
var methodChannel: FlutterMethodChannel? var methodChannel: FlutterMethodChannel?
lazy var vm: ViewModel = .init()
fileprivate func updateUI() {
titleL.text = vm.landingPageTitle
stepL1.text = vm.landingPageStep1
stepL2.text = vm.landingPageStep2
stepL3.text = vm.landingPageStep3
startBtn.setTitle(vm.landingPageStart, for: .normal)
}
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
let button = UIButton(type: UIButton.ButtonType.custom) updateUI()
button.addTarget(self, action: #selector(showFlutter), for: .touchUpInside)
button.setTitle("Show Flutter!", for: UIControl.State.normal)
button.frame = CGRect(x: 80.0, y: 210.0, width: 160.0, height: 40.0)
button.backgroundColor = UIColor.blue
view.addSubview(button)
panelV.isHidden = true
if let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine { if let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine {
methodChannel = FlutterMethodChannel(name: "com.wmdigit.breastcoachai.native", methodChannel = FlutterMethodChannel(name: "com.wmdigit.breastcoachai.native",
binaryMessenger: flutterEngine.binaryMessenger) binaryMessenger: flutterEngine.binaryMessenger)
...@@ -31,7 +44,7 @@ class ViewController: UIViewController { ...@@ -31,7 +44,7 @@ class ViewController: UIViewController {
if let strongSelf = self { if let strongSelf = self {
switch call.method { switch call.method {
case "init": case "init":
result(self?.dicValueString(self!.getData())) result(strongSelf.vm.flutterArguments)
case "teachingEnd": case "teachingEnd":
strongSelf.presentedViewController?.dismiss(animated: true) strongSelf.presentedViewController?.dismiss(animated: true)
default: default:
...@@ -43,7 +56,7 @@ class ViewController: UIViewController { ...@@ -43,7 +56,7 @@ class ViewController: UIViewController {
} }
} }
@objc func showFlutter() { @IBAction func tapStart(_ sender: Any) {
if let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine { if let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine {
let flutterViewController = FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil) let flutterViewController = FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil)
flutterViewController.modalPresentationStyle = .overFullScreen flutterViewController.modalPresentationStyle = .overFullScreen
...@@ -51,100 +64,41 @@ class ViewController: UIViewController { ...@@ -51,100 +64,41 @@ class ViewController: UIViewController {
} }
} }
func dicValueString(_ dic: [String: Any]) -> String? {
let data = try? JSONSerialization.data(withJSONObject: dic, options: [])
let str = String(data: data!, encoding: String.Encoding.utf8)
return str
}
func getData() -> [String: Any] { @IBAction func showPanel(_ sender: UIButton) {
let myDictionary: [String: Any] = [ sender.isSelected = !sender.isSelected
"languagePack": [ panelV.isHidden = !sender.isSelected
"tipsString": [ (panelV.viewWithTag(1000) as! UIButton).isSelected = false
"initInitial": "请调整姿势", (panelV.viewWithTag(1001) as! UIButton).isSelected = false
"sittingUnrecognition": "未识别到宝宝,请根据屏幕上的宝宝贴纸模拟动作", (panelV.viewWithTag(1002) as! UIButton).isSelected = false
"sittingBabyneckloc": "请用肘关节支撑宝宝颈部",
"sittingBabyhead": "请勿用手掌固定宝宝头部", switch vm.language {
"sittingBabybackloc": "请将前臂顺着宝宝背部", case .english:
"sittingUpleft": "请抬高左手臂", (panelV.viewWithTag(1000) as! UIButton).isSelected = true
"sittingUpright": "请抬高右手臂", case .français:
"sittingDownleft": "请放低左手臂", (panelV.viewWithTag(1001) as! UIButton).isSelected = true
"sittingDownright": "请放低右手臂", case .español:
"sittingHeadupassdown": "请保持宝宝头部高于臀部", (panelV.viewWithTag(1002) as! UIButton).isSelected = true
"sittingBabystright": "请保持宝宝耳肩臀在同一直线", }
"sittingBabyheadloc": "请确保宝宝头部正对妈妈乳房,不宜过高",
"nobabysittingBabyneckloc": "实际哺乳时,请注意用肘关节支撑宝宝颈部", }
"nobabysittingHeadupassdown": "实际哺乳时,请保持宝宝头部高于臀部",
"nobabysittingBabystright": "实际哺乳时,请保持宝宝耳肩臀一条直线",
"sittingSuggest": [
"请采用舒适姿势,确保与宝宝始终胸腹相贴",
"宝宝嘴巴尽量包裹住乳晕",
"使宝宝下巴紧贴乳房,张嘴角度大于100度",
"随时点击右上角指导图示调整含乳姿势",
"放松肩膀",
"妈妈抱宝宝的手,腰部和脚有支撑",
"保持放松,直到哺乳结束",
],
],
"commonmemsg": ["initialMassage": "请与屏幕保持1米左右距离使身体进入轮廓线,5秒后开始识别"],
"sittingMsg": [
"babyneckloc": "请用肘关节支撑宝宝颈部",
"babyhead": "请勿用手掌固定宝宝头部",
"babybackloc": "请将前臂顺着宝宝背部",
"upleft": "请抬高左手臂",
"upright": "请抬高右手臂",
"downleft": "请放低左手臂",
"downright": "请放低右手臂",
"headupassdown": "请保持宝宝头部高于臀部",
"babystright": "请保持宝宝耳肩臀在同一直线",
"babyheadloc": "请确保宝宝头部正对妈妈乳房,不宜过高",
],
"sittingMsgPart": [
"babyneckloc": "请用肘关节支撑宝宝颈部",
"babyhead": "请勿用手掌固定宝宝头部",
"babybackloc": "请将前臂顺着宝宝背部",
"headupassdown": "请保持宝宝头部高于臀部",
"babystright": "请保持宝宝耳肩臀在同一直线",
"babyheadloc": "请确保宝宝头部正对妈妈乳房,不宜过高",
],
"successmsg": [
"recordMessage": "现在可以开始哺乳了!3秒后将自动开始计时",
"nobabyRecord": "您已掌握喂养姿势,期待您和宝宝一起来体验哺乳计时功能",
"suggest": "请及时点击右上角指导图示调整",
"posSuccess": "您的姿势正确,请继续保持",
],
"strings": [
"suggestTitle": "在开始哺乳的时候可以保持:",
"suggestText1": "1.在哺乳过程中,应采用妈妈和宝宝都舒适的姿势,确保与宝宝始终胸腹相贴。",
"suggestText2": "2.请让宝宝嘴巴尽量包裹住乳晕,下巴紧贴乳房,张嘴角度大于100度。",
"suggestText3": "3.请放松肩膀,用垫子或枕头支撑抱宝宝的手,腰部和脚。",
"suggestText4": "4.全程请保持放松,愉悦的状态,直到宝宝主动吐出乳头。",
"suggestConfirmText": "知道了",
"discardReasonTitle": "放弃的原因是...",
"discardReason1": "不知道怎么用",
"discardReason2": "担心我的个人隐私",
"discardReason3": "觉得没有用处",
"mainTipsText": "请在安全环境安全设备使用本功能。在使用过程中,我们不会存储您的图像。",
"guidance": "指导",
"briefSummaryTitleFront": "恭喜您在",
"briefSummaryTitleAfter": "秒内完成了本次姿势矫正",
"sitMainPointsText1": "婴儿头高臀低,妈妈能看到婴儿的表情",
"sitMainPointsText2": "妈妈和婴儿应该腹胸相贴",
"sitMainPointsText3": "婴儿的头枕于妈妈手肘处,不要用手固定婴儿头部",
"sitMainPointsText4": "婴儿的耳、肩、臀成一条直线",
"sitMainPointsConfirmText": "好 的",
"momLeft": "当未检测到您,将自动停止计时后续流程,停留5s后跳转至结束页面",
"successStatusTips": "您的姿势正确,请继续保持大约10秒",
"errorTitle": "错误",
"keyErrorText": "密钥禁止使用",
"originErrorText": "不允许CORS",
],
],
"env": "testing",
"apiKey": "DLAB-customername-12345687",
"region": "apac",
]
return myDictionary @IBAction func selectLanguage(_ sender: UIButton) {
switch sender.tag {
case 1000:
vm.language = .english
case 1001:
vm.language = .français
case 1002:
vm.language = .español
default:
break
}
switchBtn.isSelected = false
panelV.isHidden = true
updateUI()
} }
} }
//
// ViewModel.swift
// BreastFeedingDemo
//
// Created by Jay Zhang on 2022/6/5.
//
import Foundation
class ViewModel {
enum Language: String {
case english
case français = "french"
case español = "spanish"
}
var env: String = "testing"
var apiKey: String = "DLAB-customername-12345687"
var region: String = "apac"
var language: Language = .english {
didSet {
setupText()
}
}
var landingPageTitle: String?
var landingPageStep1: String?
var landingPageStep2: String?
var landingPageStep3: String?
var landingPageStart: String?
var congratulation: String?
var ok: String?
var languagePack: [String: Any] {
let languageFile = language.rawValue.appending(".json")
let path: String = Bundle.main.path(forResource: languageFile, ofType: nil)!
let nsUrl = URL(fileURLWithPath: path)
let nsData = try! Data(contentsOf: nsUrl)
let json = try! JSONSerialization.jsonObject(with: nsData) as! [String: Any]
return json
}
var flutterArguments: String {
let arguments: [String: Any] = [
"languagePack": languagePack,
"env": env,
"apiKey": apiKey,
"region": region,
]
let data = try? JSONSerialization.data(withJSONObject: arguments, options: [])
let str = String(data: data!, encoding: String.Encoding.utf8)
return str!
}
init() {
language = .english
setupText()
}
fileprivate func setupText() {
switch language {
case .english:
landingPageTitle = "Breastfeeding posture AI coach"
landingPageStep1 = "Put your device on a stable surface"
landingPageStep2 = "Keep one meter away from the camera, and fit your body into the guide line. Session starts in 5 seconds after you click \"Start Now\" button"
landingPageStep3 = "Camera permission is needed for AI coach. Your clothes will not affect the AI coach"
landingPageStart = "Start Now"
congratulation = "Congratulations"
ok = "OK"
case .français:
landingPageTitle = "Coach AI en posture d'allaitement"
landingPageStep1 = "Placez votre appareil sur une surface stable"
landingPageStep2 = "Tenez-vous à un mètre de la caméra et placez votre corps dans la ligne de guidage. La session démarre dans 5 secondes après avoir cliqué sur le bouton \"Démarrer maintenant\""
landingPageStep3 = "L'autorisation de la caméra est nécessaire pour l'entraîneur AI. Vos vêtements n'affecteront pas l'entraîneur AI"
landingPageStart = "Commencez maintenant"
congratulation = ""
ok = "OK"
case .español:
landingPageTitle = "Asistente de AI de postura de lactancia"
landingPageStep1 = "Coloque su dispositivo en una superficie estable"
landingPageStep2 = "Manténgase a un metro de distancia de la cámara y coloque su cuerpo en la línea. La sesión comienza en 5 segundos después de hacer clic en el botón \"Comenzar ahora\""
landingPageStep3 = "Se necesita permiso para acceder a la cámara para el asistente de IA. Su ropa no afectará al asistente de IA"
landingPageStart = "Empezar ahora"
congratulation = ""
ok = "OK"
}
}
}
{
"tipsString": {
"initInitial": "Please adjust your posture",
"sittingUnrecognition":
"No baby detected. Please follow the on-screen instructions",
"sittingBabyneckloc": "Make sure baby's neck is on your elbow",
"sittingBabyhead": "Do not restrict baby's head with your hands",
"sittingBabybackloc":
"Make sure your forearm is supporting baby's back",
"sittingUpleft": "Raise your left arm",
"sittingUpright": "Raise your right arm",
"sittingDownleft": "Lower your left arm",
"sittingDownright": "Lower your right arm",
"sittingHeadupassdown":
"Keep baby's head in higher position than the rest of the body",
"sittingBabystright":
"Keep baby's ear, shoulder and butt at the same level",
"sittingBabyheadloc":
"Make sure baby is facing the breast at proper height",
"nobabysittingBabyneckloc":
"During actual breastfeeding, make sure baby's neck is on your elbow",
"nobabysittingHeadupassdown":
"During actual breastfeeding, keep baby's head in higher position than the rest of the body",
"nobabysittingBabystright":
"During actual breastfeeding, keep baby's ear, shoulder and butt at the same level",
"sittingSuggest": [
"Adjust to a comfortable posture, and keep baby very close to you at all times",
"Make sure baby is latched properly (mouth should fully cover the nipple and areola)",
"Keep baby's chin close to your breast, and mouth fully covering the nipple and areola",
"Tap top right icon to view more info",
"Relax your shoulder",
"There should be support to your hand, waist and feet when holding baby",
"Keep relaxed until the end of session"
]
},
"commonmemsg": {
"initialMassage":
"Keep one meter away from the camera, and fit your body into the guide line. Session starts in 5 seconds…",
"slogan": ""
},
"sittingMsg": {
"babyneckloc": "Make sure baby's neck is on your elbow",
"babyhead": "Do not restrict baby's head with your hands",
"babybackloc": "Make sure your forearm is supporting baby's back",
"upleft": "Raise your left arm",
"upright": "Raise your right arm",
"downleft": "Lower your left arm",
"downright": "Lower your right arm",
"headupassdown":
"Keep baby's head in higher position than the rest of the body",
"babystright": "Keep baby's ear, shoulder and butt at the same level",
"babyheadloc": "Make sure baby is facing the breast at proper height"
},
"sittingMsgPart": {
"babyneckloc": "Make sure baby's neck is on your elbow",
"babyhead": "Do not restrict baby's head with your hands",
"babybackloc": "Make sure your forearm is supporting baby's back",
"headupassdown":
"Keep baby's head in higher position than the rest of the body",
"babystright": "Keep baby's ear, shoulder and butt at the same level",
"babyheadloc": "Make sure baby is facing the breast at proper height"
},
"successmsg": {
"recordMessage":
"You may start breastfeeding now! Timer starts in 3 seconds…",
"nobabyRecord":
"You have learned the correct posture. You may try this AI coach with your baby next time",
"suggest": "Tap top right icon to view more info",
"posSuccess": "Your posture is correct. Please keep it going"
},
"strings": {
"suggestTitle": "During actual breastfeeding:",
"suggestText1":
"Adjust to a comfortable posture, and keep baby very close to you at all times",
"suggestText2":
"Make sure baby is latched properly (mouth should fully cover the nipple and areola); keep baby's chin close to your breast, and mouth fully covering the nipple and areola",
"suggestText3":
"There should be support to your hand, waist and feet when holding baby",
"suggestText4": "Keep relaxed until the end of session",
"suggestConfirmText": "OK",
"discardReasonTitle": "Reasons to give up?",
"discardReason1": "Not sure how to use it",
"discardReason2": "Concern about my personal privacy",
"discardReason3": "Do not think it is helpful",
"mainTipsText":
"Your images and videos will only be used for AI coach recognition. They will not be stored.",
"guidance": "Tips",
"briefSummaryTitleFront":
"Congratulations! You have completed the session in ",
"briefSummaryTitleAfter": " seconds",
"sitMainPointsText1":
"Keep baby's head in higher position so you can see baby's face",
"sitMainPointsText2": "Keep baby very close to you",
"sitMainPointsText3":
"Keep baby's neck on your elbow, and do not restrict baby's head with your hand",
"sitMainPointsText4":
"Keep baby's ear, shoulder and butt at the same level",
"sitMainPointsConfirmText": "OK",
"momLeft":
"No person detected. The finish page will be shown after 5 seconds",
"successStatusTips":
"Correct! Please keep the posture for about 20 seconds",
"errorTitle": "Error",
"keyErrorText": "Key Forbidden",
"originErrorText": "Not allowed by CORS"
}
}
\ No newline at end of file
{
"tipsString": {
"initInitial": "Veuillez ajuster votre posture",
"sittingUnrecognition":
"Aucun bébé détecté. Veuillez suivre les instructions à l'écran",
"sittingBabyneckloc":
"Assurez-vous que le cou de bébé est sur votre coude",
"sittingBabyhead": "Ne limitez pas la tête de bébé avec vos mains",
"sittingBabybackloc":
"Assurez-vous que votre avant-bras soutient le dos de bébé",
"sittingUpleft": "Levez votre bras gauche",
"sittingUpright": "Levez votre bras droit",
"sittingDownleft": "Abaissez votre bras gauche",
"sittingDownright": "Abaissez votre bras droit",
"sittingHeadupassdown":
"Gardez la tête de bébé en position plus haute que le reste du corps",
"sittingBabystright":
"Gardez l'oreille, l'épaule et les fesses de bébé au même niveau",
"sittingBabyheadloc":
"Assurez-vous que bébé est face au sein à la bonne hauteur",
"nobabysittingBabyneckloc":
"Pendant l'allaitement, assurez-vous que le cou du bébé est sur votre coude",
"nobabysittingHeadupassdown":
"Pendant l'allaitement, gardez la tête de bébé en position plus haute que le reste du corps",
"nobabysittingBabystright":
"Pendant l'allaitement, gardez l'oreille, l'épaule et les fesses de bébé au même niveau",
"sittingSuggest": [
"Ajustez-vous à une posture confortable et gardez bébé très près de vous à tout moment",
"Assurez-vous que le bébé prend correctement le sein (la bouche doit couvrir entièrement le mamelon et l'aréole)",
"Gardez le menton de bébé près de votre sein, sa bouche couvrant entièrement le mamelon et l'aréole",
"Appuyez sur l'icône en haut à droite pour afficher plus d'informations",
"Détendez votre épaule",
"Votre main, votre taille et vos pieds doivent être soutenus lorsque vous tenez bébé",
"Restez détendu jusqu'à la fin de la séance"
]
},
"commonmemsg": {
"initialMassage":
"Tenez-vous à un mètre de la caméra et placez votre corps dans la ligne de guidage. La session démarre dans 5 secondes…"
},
"sittingMsg": {
"babyneckloc": "Assurez-vous que le cou de bébé est sur votre coude",
"babyhead": "Ne limitez pas la tête de bébé avec vos mains",
"babybackloc":
"Assurez-vous que votre avant-bras soutient le dos de bébé",
"upleft": "Levez votre bras gauche",
"upright": "Levez votre bras droit",
"downleft": "Abaissez votre bras gauche",
"downright": "Abaissez votre bras droit",
"headupassdown":
"Gardez la tête de bébé en position plus haute que le reste du corps",
"babystright":
"Gardez l'oreille, l'épaule et les fesses de bébé au même niveau",
"babyheadloc":
"Assurez-vous que bébé est face au sein à la bonne hauteur"
},
"sittingMsgPart": {
"babyneckloc": "Assurez-vous que le cou de bébé est sur votre coude",
"babyhead": "Ne limitez pas la tête de bébé avec vos mains",
"babybackloc":
"Assurez-vous que votre avant-bras soutient le dos de bébé",
"headupassdown":
"Gardez la tête de bébé en position plus haute que le reste du corps",
"babystright":
"Gardez l'oreille, l'épaule et les fesses de bébé au même niveau",
"babyheadloc":
"Assurez-vous que bébé est face au sein à la bonne hauteur"
},
"successmsg": {
"recordMessage":
"Vous pouvez commencer à allaiter maintenant ! La minuterie démarre dans 3 secondes…",
"nobabyRecord":
"Vous avez appris la bonne posture. Vous pouvez essayer cet entraîneur AI avec votre bébé la prochaine fois",
"suggest":
"Appuyez sur l'icône en haut à droite pour afficher plus d'informations",
"posSuccess": "Votre posture est correcte. Vous pouvez continuer"
},
"strings": {
"suggestTitle": "Pendant l'allaitemen:",
"suggestText1":
"Ajustez-vous à une posture confortable et gardez bébé très près de vous à tout moment",
"suggestText2":
"Assurez-vous que le bébé prend correctement le sein (la bouche doit couvrir entièrement le mamelon et l'aréole); gardez le menton de bébé près de votre sein, sa bouche couvrant entièrement le mamelon et l'aréole",
"suggestText3":
"Votre main, votre taille et vos pieds doivent être soutenus lorsque vous tenez bébé",
"suggestText4": "Restez détendu jusqu'à la fin de la séance",
"suggestConfirmText": "OK.",
"discardReasonTitle": "Raisons d'abandonner?",
"discardReason1": "Je ne sais pas comment l'utiliser",
"discardReason2": "Inquiétude pour ma vie privée",
"discardReason3": "Je ne pense pas que c'est utile",
"mainTipsText":
"Vos images et vidéos ne seront utilisées que pour la reconnaissance des coachs IA. Elles ne seront pas stockés.",
"guidance": "des astuces",
"briefSummaryTitleFront":
"Toutes nos félicitations! Vous avez terminé la session en ",
"briefSummaryTitleAfter": " secondes",
"sitMainPointsText1":
"Gardez la tête de bébé en position haute pour que vous puissiez voir le visage de bébé",
"sitMainPointsText2": "Gardez bébé très près de vous",
"sitMainPointsText3":
"Gardez le cou de bébé sur votre coude et ne limitez pas la tête de bébé avec votre main",
"sitMainPointsText4":
"Gardez l'oreille, l'épaule et les fesses de bébé au même niveau",
"sitMainPointsConfirmText": "OK",
"momLeft":
"Aucune personne détectée. La page d'arrivée s'affichera après 5 secondes",
"successStatusTips":
"Corriger! Veuillez garder la posture pendant environ 20 secondes",
"errorTitle": "Erreur",
"keyErrorText": "Interdire l'utilisation des clés",
"originErrorText": "Cors not allowed"
}
}
\ No newline at end of file
{
"tipsString": {
"initInitial": "Por favor, ajuste su postura",
"sittingUnrecognition":
"Ningún bebé detectado. Siga las instrucciones mostradas en pantalla",
"sittingBabyneckloc":
"Asegúrese de que el cuello del bebé esté sobre su codo",
"sittingBabyhead": "No restrinja la cabeza del bebé con las manos",
"sittingBabybackloc":
"Asegúrese de que su antebrazo esté sosteniendo la espalda del bebé",
"sittingUpleft": "Levante su brazo izquierdo",
"sittingUpright": "Levante su brazo derecho",
"sittingDownleft": "Baje su brazo izquierdo",
"sittingDownright": "Baje su brazo derecho",
"sittingHeadupassdown":
"Mantenga la cabeza del bebé en una posición más alta que el resto del cuerpo",
"sittingBabystright":
"Mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
"sittingBabyheadloc":
"Asegúrese de que el bebé esté frente al pecho a la altura adecuada",
"nobabysittingBabyneckloc":
"Durante la lactancia real, asegúrese de que el cuello del bebé esté sobre su codo.",
"nobabysittingHeadupassdown":
"Durante la lactancia real, mantenga la cabeza del bebé en una posición más alta que el resto del cuerpo",
"nobabysittingBabystright":
"Durante la lactancia real, mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
"sittingSuggest": [
"Tome una postura cómoda y mantén al bebé muy cerca de usted en todo momento",
"Asegúrese de que el bebé esté bien sujeto (la boca debe cubrir completamente el pezón y la areola)",
"Mantenga la barbilla del bebé cerca de su seno y la boca cubriendo completamente el pezón y la areola",
"Toque el icono superior derecho para ver más información",
"Relaje su hombro",
"Debe haber apoyo en su mano, su cintura y sus pies al sostener al bebé",
"Manténgase relajada hasta el final de la sesión"
]
},
"commonmemsg": {
"initialMassage":
"Manténgase a un metro de distancia de la cámara y coloque su cuerpo en la línea. La sesión comienza en 5 segundos..."
},
"sittingMsg": {
"babyneckloc": "Asegúrese de que el cuello del bebé esté sobre su codo",
"babyhead": "No restrinja la cabeza del bebé con las manos",
"babybackloc":
"Asegúrese de que su antebrazo esté sosteniendo la espalda del bebé",
"upleft": "Levante su brazo izquierdo",
"upright": "Levante su brazo derecho",
"downleft": "Baje su brazo izquierdo",
"downright": "Baje su brazo derecho",
"headupassdown":
"Mantenga la cabeza del bebé en una posición más alta que el resto del cuerpo",
"babystright":
"Mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
"babyheadloc":
"Asegúrese de que el bebé esté frente al pecho a la altura adecuada"
},
"sittingMsgPart": {
"babyneckloc": "Asegúrese de que el cuello del bebé esté sobre su codo",
"babyhead": "No restrinja la cabeza del bebé con las manos.",
"babybackloc":
"Asegúrese de que su antebrazo esté sosteniendo la espalda del bebé",
"headupassdown":
"Mantenga la cabeza del bebé en una posición más alta que el resto del cuerpo",
"babystright":
"Mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
"babyheadloc":
"Asegúrese de que el bebé esté frente al pecho a la altura adecuada"
},
"successmsg": {
"recordMessage":
"¡Puede comenzar a darle el pecho ahora! El temporizador comienza en 3 segundos...",
"nobabyRecord":
"Ha aprendido la postura correcta. Puede probar este asistente de IA con su bebé la próxima vez",
"suggest": "Toque el icono superior derecho para ver más información",
"posSuccess": "Su postura es correcta. Por favor, sigua así"
},
"strings": {
"suggestTitle": "Durante la lactancia real:",
"suggestText1":
"Tome una postura cómoda y mantén al bebé muy cerca de usted en todo momento",
"suggestText2":
"Asegúrese de que el bebé esté bien sujeto (la boca debe cubrir completamente el pezón y la areola); mantenga la barbilla del bebé cerca de su seno y la boca cubriendo completamente el pezón y la areola",
"suggestText3":
"Debe haber apoyo en su mano, su cintura y sus pies al sostener al bebé",
"suggestText4": "Manténgase relajada hasta el final de la sesión",
"suggestConfirmText": "DE ACUERDO",
"discardReasonTitle": "Razones para rendirse?",
"discardReason1": "No estoy segura de cómo usarlo",
"discardReason2": "Preocupación por mi privacidad",
"discardReason3": "No creo que sea útil",
"mainTipsText":
"Sus imágenes y videos solo se utilizarán para el reconocimiento del asistente de IA. No se almacenarán.",
"guidance": "consejos",
"briefSummaryTitleFront": "¡Felicidades! Has completado la sesión en ",
"briefSummaryTitleAfter": " segundos",
"sitMainPointsText1":
"Mantenga la cabeza del bebé en una posición más alta para que pueda ver la cara del bebé",
"sitMainPointsText2": "Mantenga al bebé muy cerca de usted",
"sitMainPointsText3":
"Mantenga el cuello del bebé sobre su codo y no restrinja la cabeza del bebé con su mano",
"sitMainPointsText4":
"Mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
"sitMainPointsConfirmText": "DE ACUERDO",
"momLeft":
"No se detectó ninguna persona. La página de finalización se mostrará después de 5 segundos",
"successStatusTips":
"¡Correcto! Mantenga la postura durante unos 20 segundos",
"errorTitle": "Error",
"keyErrorText": "Desactivar la clave",
"originErrorText": "CORS no permite"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment