Skip to content

Commit

Permalink
Add UI support for iphones with small screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkmr committed Aug 16, 2018
1 parent eec3370 commit a8eca80
Show file tree
Hide file tree
Showing 7 changed files with 289 additions and 252 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>Actifit.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>5</integer>
<integer>6</integer>
</dict>
</dict>
</dict>
Expand Down
Binary file not shown.
512 changes: 271 additions & 241 deletions Actifit/Actifit/Controllers/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Actifit/Actifit/Structs/Structs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ struct HttpMethods {

//API URLS
struct ApiUrls {
static let postActivity = "https://actifit-pst-cr3at0r.herokuapp.com/api/p0stact1f1t"
static let getDailyLeaderboard = "https://actifit-pst-cr3at0r.herokuapp.com/api/top5p0sts"
static let postActivity = ""
static let getDailyLeaderboard = ""
}
11 changes: 6 additions & 5 deletions Actifit/Actifit/Views/ActivityTypeTableViewCell.xib
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
Expand All @@ -19,17 +20,17 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Aerobics" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nrc-2Y-Bnr">
<rect key="frame" x="65" y="12.5" width="235" height="19.5"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<rect key="frame" x="64" y="13.5" width="236" height="18"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="check" translatesAutoresizingMaskIntoConstraints="NO" id="82d-Xw-bx1">
<rect key="frame" x="20" y="9" width="25" height="25"/>
<rect key="frame" x="20" y="9.5" width="24" height="24"/>
<color key="backgroundColor" red="0.96470588239999999" green="0.24313725489999999" blue="0.50588235290000005" alpha="0.78298938679999996" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="25" id="VJh-SG-fGS"/>
<constraint firstAttribute="width" constant="25" id="lc0-wT-JAp"/>
<constraint firstAttribute="height" constant="24" id="VJh-SG-fGS"/>
<constraint firstAttribute="width" constant="24" id="lc0-wT-JAp"/>
</constraints>
</imageView>
</subviews>
Expand Down
7 changes: 4 additions & 3 deletions Actifit/Actifit/Views/ActivityTypesView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
Expand All @@ -16,15 +17,15 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="6Yo-3x-AjK">
<rect key="frame" x="20" y="40" width="335" height="557"/>
<rect key="frame" x="20" y="40" width="335" height="562"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="dataSource" destination="iN0-l3-epB" id="izL-wZ-3V8"/>
<outlet property="delegate" destination="iN0-l3-epB" id="pLb-YV-gaa"/>
</connections>
</tableView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="iQ1-hp-lTT">
<rect key="frame" x="20" y="597" width="335" height="50"/>
<rect key="frame" x="20" y="602" width="335" height="50"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="1ox-yf-YeL"/>
Expand All @@ -45,7 +46,7 @@
<constraint firstItem="iQ1-hp-lTT" firstAttribute="top" secondItem="6Yo-3x-AjK" secondAttribute="bottom" id="cee-D5-0bo"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="iQ1-hp-lTT" secondAttribute="trailing" constant="20" id="dKt-ea-DIh"/>
<constraint firstItem="6Yo-3x-AjK" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" constant="20" id="dQN-It-PQh"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="iQ1-hp-lTT" secondAttribute="bottom" constant="20" id="npM-t1-Dpc"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="iQ1-hp-lTT" secondAttribute="bottom" constant="15" id="npM-t1-Dpc"/>
</constraints>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<connections>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8eca80

Please sign in to comment.