forked from cjiong/LearnSwift
-
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.
- Loading branch information
Showing
8 changed files
with
86 additions
and
8 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
+6.4 KB
(170%)
...eproj/project.xcworkspace/xcuserdata/chenjiong.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
Project 50 - GradientAnimation/Project 50 - GradientAnimation/AnimatedLabel.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,10 @@ | ||
// | ||
// AnimatedLabel.swift | ||
// Project 50 - GradientAnimation | ||
// | ||
// Created by 陈炯 on 16/8/21. | ||
// Copyright © 2016年 Jiong. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
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
6 changes: 6 additions & 0 deletions
6
Project 50 - GradientAnimation/Project 50 - GradientAnimation/Assets.xcassets/Contents.json
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,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...nimation/Project 50 - GradientAnimation/Assets.xcassets/background.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "background.pdf", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Binary file added
BIN
+4.85 KB
...imation/Project 50 - GradientAnimation/Assets.xcassets/background.imageset/background.pdf
Binary file not shown.
45 changes: 37 additions & 8 deletions
45
Project 50 - GradientAnimation/Project 50 - GradientAnimation/Base.lproj/Main.storyboard
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 |
---|---|---|
@@ -1,25 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r"> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9531" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="OSK-Ge-l93"> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/> | ||
</dependencies> | ||
<scenes> | ||
<!--View Controller--> | ||
<scene sceneID="tne-QT-ifu"> | ||
<scene sceneID="esT-Nt-JaD"> | ||
<objects> | ||
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController"> | ||
<viewController id="OSK-Ge-l93" customClass="ViewController" customModule="Project_50___GradientAnimation" customModuleProvider="target" sceneMemberID="viewController"> | ||
<layoutGuides> | ||
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> | ||
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> | ||
<viewControllerLayoutGuide type="top" id="0WB-ml-Wb9"/> | ||
<viewControllerLayoutGuide type="bottom" id="yTP-TK-RP8"/> | ||
</layoutGuides> | ||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> | ||
<view key="view" contentMode="scaleToFill" id="zvi-MJ-6MQ"> | ||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="background" translatesAutoresizingMaskIntoConstraints="NO" id="Dhk-Uc-jqU"> | ||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/> | ||
</imageView> | ||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oHF-hz-6yM" customClass="AnimatedLabel" customModule="Project_50___GradientAnimation" customModuleProvider="target"> | ||
<rect key="frame" x="0.0" y="250" width="600" height="100"/> | ||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> | ||
<constraints> | ||
<constraint firstAttribute="height" constant="100" id="Jfh-tP-Ee2"/> | ||
<constraint firstAttribute="width" constant="600" id="TXj-UL-zG9"/> | ||
</constraints> | ||
<userDefinedRuntimeAttributes> | ||
<userDefinedRuntimeAttribute type="string" keyPath="text" value="Learn Swift"/> | ||
</userDefinedRuntimeAttributes> | ||
</view> | ||
</subviews> | ||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | ||
<constraints> | ||
<constraint firstAttribute="trailing" secondItem="Dhk-Uc-jqU" secondAttribute="trailing" id="3gZ-hn-8o6"/> | ||
<constraint firstItem="yTP-TK-RP8" firstAttribute="top" secondItem="Dhk-Uc-jqU" secondAttribute="bottom" id="KAZ-39-pPu"/> | ||
<constraint firstItem="Dhk-Uc-jqU" firstAttribute="leading" secondItem="zvi-MJ-6MQ" secondAttribute="leading" id="Lko-zz-7JC"/> | ||
<constraint firstItem="oHF-hz-6yM" firstAttribute="centerX" secondItem="zvi-MJ-6MQ" secondAttribute="centerX" id="NvG-8f-7oT"/> | ||
<constraint firstItem="Dhk-Uc-jqU" firstAttribute="top" secondItem="0WB-ml-Wb9" secondAttribute="bottom" constant="-20" id="UIR-ce-Jjg"/> | ||
<constraint firstItem="oHF-hz-6yM" firstAttribute="centerY" secondItem="zvi-MJ-6MQ" secondAttribute="centerY" id="iLt-Nx-jqF"/> | ||
</constraints> | ||
</view> | ||
</viewController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="mNY-0I-N65" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="306" y="317"/> | ||
</scene> | ||
</scenes> | ||
<resources> | ||
<image name="background" width="1200" height="1200"/> | ||
</resources> | ||
</document> |