mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-23 11:57:21 +08:00
Added tvOS subspec, tvOS example cleanup.
- tvOS subspec excludes FLAnimatedImage (for now) - Removed GIF and WebP examples - Added Pods directory
This commit is contained in:
@@ -5,39 +5,6 @@
|
||||
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--WebP-->
|
||||
<scene sceneID="hNz-n2-bh7">
|
||||
<objects>
|
||||
<viewController id="9pv-A4-QxB" customClass="WebPViewController" customModule="PINRemoteImage_tvOSExample" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="Ia1-K6-d13"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="4ug-Mw-9AY"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="tsR-hK-woN">
|
||||
<rect key="frame" x="0.0" y="0.0" width="1920" height="1080"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Aav-0m-Omh">
|
||||
<rect key="frame" x="20" y="0.0" width="1880" height="1080"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstItem="Aav-0m-Omh" firstAttribute="top" secondItem="Ia1-K6-d13" secondAttribute="bottom" id="6Ht-Zl-b4M"/>
|
||||
<constraint firstItem="Aav-0m-Omh" firstAttribute="leading" secondItem="tsR-hK-woN" secondAttribute="leadingMargin" id="eMM-4Q-FP4"/>
|
||||
<constraint firstItem="4ug-Mw-9AY" firstAttribute="top" secondItem="Aav-0m-Omh" secondAttribute="bottom" id="gHg-Zb-fcQ"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="Aav-0m-Omh" secondAttribute="trailing" id="rGZ-K8-3DN"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<tabBarItem key="tabBarItem" title="WebP" id="acW-dT-cKf"/>
|
||||
<connections>
|
||||
<outlet property="imageView" destination="Aav-0m-Omh" id="iNg-er-rJA"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="W5J-7L-Pyd" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="2246" y="-640"/>
|
||||
</scene>
|
||||
<!--Progressive-->
|
||||
<scene sceneID="wg7-f3-ORb">
|
||||
<objects>
|
||||
@@ -189,38 +156,6 @@
|
||||
</objects>
|
||||
<point key="canvasLocation" x="2246" y="4151"/>
|
||||
</scene>
|
||||
<!--GIF-->
|
||||
<scene sceneID="726-cb-Rit">
|
||||
<objects>
|
||||
<viewController id="BQc-Na-RDJ" customClass="GIFViewController" customModule="PINRemoteImage_tvOSExample" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="6W2-gt-DLK"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="vIm-pT-F5J"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="SLb-ae-8uE">
|
||||
<rect key="frame" x="0.0" y="0.0" width="1920" height="1080"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="axH-c2-F7Z" customClass="FLAnimatedImageView">
|
||||
<rect key="frame" x="20" y="0.0" width="1880" height="1080"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="vIm-pT-F5J" firstAttribute="top" secondItem="axH-c2-F7Z" secondAttribute="bottom" id="CI5-QQ-OnO"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="axH-c2-F7Z" secondAttribute="trailing" id="VoC-0X-fGh"/>
|
||||
<constraint firstItem="axH-c2-F7Z" firstAttribute="top" secondItem="6W2-gt-DLK" secondAttribute="bottom" id="s40-gD-Edf"/>
|
||||
<constraint firstItem="axH-c2-F7Z" firstAttribute="leading" secondItem="SLb-ae-8uE" secondAttribute="leadingMargin" id="wLP-9a-Bo2"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<tabBarItem key="tabBarItem" title="GIF" id="qwD-HD-45H"/>
|
||||
<connections>
|
||||
<outlet property="animatedImageView" destination="axH-c2-F7Z" id="tFA-HQ-p6d"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="X0Q-CC-kca" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="2246" y="5336"/>
|
||||
</scene>
|
||||
<!--Tab Bar Controller-->
|
||||
<scene sceneID="yl2-sM-qoP">
|
||||
<objects>
|
||||
@@ -232,12 +167,10 @@
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</tabBar>
|
||||
<connections>
|
||||
<segue destination="9pv-A4-QxB" kind="relationship" relationship="viewControllers" id="u7Y-xg-7CH"/>
|
||||
<segue destination="8rJ-Kc-sve" kind="relationship" relationship="viewControllers" id="lzU-1b-eKA"/>
|
||||
<segue destination="p0y-1w-OIp" kind="relationship" relationship="viewControllers" id="viv-6a-uMT"/>
|
||||
<segue destination="jVL-yP-ZE6" kind="relationship" relationship="viewControllers" id="RVd-en-LvT"/>
|
||||
<segue destination="YZW-JZ-Khs" kind="relationship" relationship="viewControllers" id="mL1-l4-3CC"/>
|
||||
<segue destination="BQc-Na-RDJ" kind="relationship" relationship="viewControllers" id="dBN-fC-hOf"/>
|
||||
</connections>
|
||||
</tabBarController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="HuB-VB-40B" sceneMemberID="firstResponder"/>
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
//
|
||||
// GIFViewController.swift
|
||||
// PINRemoteImage.tvOSExample
|
||||
//
|
||||
// Created by Isaac Overacker on 2/6/16.
|
||||
//
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import PINRemoteImage
|
||||
|
||||
class GIFViewController: UIViewController {
|
||||
|
||||
@IBOutlet weak var animatedImageView: FLAnimatedImageView!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do any additional setup after loading the view, typically from a nib.
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
override func viewDidAppear(animated: Bool) {
|
||||
super.viewDidAppear(animated)
|
||||
|
||||
if let url = NSURL(string: "https://i.giphy.com/l49FiX2pvMPPmCfSw.gif") {
|
||||
animatedImageView.pin_setImageFromURL(url)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -34,7 +34,7 @@ class ProgressiveViewController: UIViewController {
|
||||
var progress = [UIImage]()
|
||||
PINRemoteImageManager.sharedImageManager().downloadImageWithURL(url,
|
||||
options: .DownloadOptionsNone,
|
||||
progress: { result in
|
||||
progressImage: { result in
|
||||
if let image = result.image {
|
||||
progress.append(image)
|
||||
}
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
//
|
||||
// WebPViewController.swift
|
||||
// PINRemoteImage.tvOSExample
|
||||
//
|
||||
// Created by Isaac Overacker on 2/6/16.
|
||||
//
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import PINRemoteImage
|
||||
|
||||
class WebPViewController: UIViewController {
|
||||
|
||||
@IBOutlet weak var imageView: UIImageView!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do any additional setup after loading the view, typically from a nib.
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
override func viewDidAppear(animated: Bool) {
|
||||
super.viewDidAppear(animated)
|
||||
|
||||
if let url = NSURL(string: "https://github.com/samdutton/simpl/blob/master/picturetype/kittens.webp") {
|
||||
imageView.pin_setImageFromURL(url)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user