-
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.
Add Footer in searchResults, improve initial screen UI
- Loading branch information
Showing
9 changed files
with
256 additions
and
68 deletions.
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
Binary file modified
BIN
+10.5 KB
(110%)
.../project.xcworkspace/xcuserdata/alexookahbeast.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
Image Multi Search/Views/SearchResultsVC/SectionFooter.swift
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,22 @@ | ||
// | ||
// SectionFooter.swift | ||
// Image Multi Search | ||
// | ||
// Created by Alexandros Lykesas on 2/12/20. | ||
// | ||
|
||
import UIKit | ||
|
||
class SectionFooter: UICollectionReusableView { | ||
|
||
static let reuseIdentifier = "SectionFooter" | ||
|
||
override func awakeFromNib() { | ||
super.awakeFromNib() | ||
// Initialization code | ||
} | ||
|
||
static func nib() -> UINib { | ||
return UINib(nibName: reuseIdentifier, bundle: nil) | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
Image Multi Search/Views/SearchResultsVC/SectionFooter.xib
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,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17506" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> | ||
<device id="retina6_1" orientation="portrait" appearance="light"/> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17505"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<objects> | ||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
<collectionReusableView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="SectionFooter" id="U6b-Vx-4bR" customClass="SectionFooter" customModule="Image_Multi_Search" customModuleProvider="target"> | ||
<rect key="frame" x="0.0" y="0.0" width="320" height="50"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
<subviews> | ||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="a0g-6i-mM0"> | ||
<rect key="frame" x="172" y="6.5" width="132" height="37"/> | ||
<color key="backgroundColor" red="0.0" green="0.36397528649999999" blue="0.55531209709999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
<fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/> | ||
<inset key="contentEdgeInsets" minX="24" minY="8" maxX="24" maxY="8"/> | ||
<state key="normal" title="View more"> | ||
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
</state> | ||
<userDefinedRuntimeAttributes> | ||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius"> | ||
<real key="value" value="8"/> | ||
</userDefinedRuntimeAttribute> | ||
</userDefinedRuntimeAttributes> | ||
</button> | ||
</subviews> | ||
<viewLayoutGuide key="safeArea" id="VXr-Tz-HHm"/> | ||
<constraints> | ||
<constraint firstItem="a0g-6i-mM0" firstAttribute="centerY" secondItem="U6b-Vx-4bR" secondAttribute="centerY" id="Ans-7y-an3"/> | ||
<constraint firstAttribute="trailing" secondItem="a0g-6i-mM0" secondAttribute="trailing" constant="16" id="LKJ-S0-mY0"/> | ||
</constraints> | ||
<point key="canvasLocation" x="-146" y="113"/> | ||
</collectionReusableView> | ||
</objects> | ||
</document> |
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