Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed UI issue in Project 10 #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Project 10 - Interests/.DS_Store
Binary file not shown.
19 changes: 11 additions & 8 deletions Project 10 - Interests/Interests/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="4lj-Yg-idk">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="4lj-Yg-idk">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand All @@ -30,9 +28,8 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="FeJ-Hs-7jQ">
<rect key="frame" x="0.0" y="87" width="600" height="452"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="FeJ-Hs-7jQ">
<rect key="frame" x="0.0" y="107.5" width="375" height="452"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<collectionViewFlowLayout key="collectionViewLayout" scrollDirection="horizontal" minimumLineSpacing="20" minimumInteritemSpacing="10" id="6vt-MP-2E6">
<size key="itemSize" width="280" height="380"/>
Expand Down Expand Up @@ -99,6 +96,12 @@
</connections>
</collectionView>
</subviews>
<constraints>
<constraint firstItem="FeJ-Hs-7jQ" firstAttribute="leading" secondItem="T6H-cj-xPx" secondAttribute="leading" id="AZg-aF-bOd"/>
<constraint firstItem="FeJ-Hs-7jQ" firstAttribute="centerY" secondItem="T6H-cj-xPx" secondAttribute="centerY" id="oAX-vs-BxE"/>
<constraint firstItem="FeJ-Hs-7jQ" firstAttribute="centerX" secondItem="T6H-cj-xPx" secondAttribute="centerX" id="oeW-7t-cxm"/>
<constraint firstItem="FeJ-Hs-7jQ" firstAttribute="height" secondItem="T6H-cj-xPx" secondAttribute="height" multiplier="0.677661" id="pUT-dy-jKr"/>
</constraints>
</view>
<blurEffect style="light"/>
</visualEffectView>
Expand Down
Binary file added Project 20 - FlickrSearch/.DS_Store
Binary file not shown.
8 changes: 6 additions & 2 deletions Project 20 - FlickrSearch/FlickrSearch/Flickr.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@

import UIKit

// go to https://www.flickr.com/services/api/explore/flickr.photos.search to get the latest apikey
let apiKey = "68235aae25e7a935db219ebce37f5735"
/* Step for get apikey
Step - 1: got to https://www.flickr.com/services/api/explore/flickr.photos.getRecent
Step - 2: Then call method without any send argument you will see url below the response
Step - 3: Find the query paramter "api_key" and copy its value and paste below in the parameter called 'apiKey'
*/
let apiKey = "e8442b52160f9bc4900f4133f80b688a"

class Flickr {

Expand Down