Skip to content

Commit

Permalink
update demo preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Apple authored and Apple committed Jun 21, 2016
1 parent 1ffe4df commit 203823c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions LiveLabel.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
TargetAttributes = {
18C6E7F31D17A53500635DCF = {
CreatedOnToolsVersion = 8.0;
DevelopmentTeam = S6EBGVAJG2;
DevelopmentTeamName = "Cao Jiaxin";
ProvisioningStyle = Automatic;
};
};
Expand Down Expand Up @@ -281,6 +283,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = LiveLabel/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = hehe.LiveLabel;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -293,6 +296,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = LiveLabel/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = hehe.LiveLabel;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
12 changes: 11 additions & 1 deletion LiveLabel/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11129.15" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11103.10"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -41,15 +41,25 @@
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DTl-PQ-yUJ" customClass="LiveLabel" customModule="LiveLabel" customModuleProvider="target">
<string key="text">Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</string>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="SJa-Lo-eB4" firstAttribute="leading" secondItem="Qfo-d9-XFU" secondAttribute="trailing" constant="8" id="1M4-R3-1zW"/>
<constraint firstItem="bCn-MS-Ze3" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="24R-tZ-Pqw"/>
<constraint firstAttribute="trailingMargin" secondItem="DTl-PQ-yUJ" secondAttribute="trailing" constant="20" id="5uX-Mj-sly"/>
<constraint firstItem="Qfo-d9-XFU" firstAttribute="top" secondItem="DTl-PQ-yUJ" secondAttribute="bottom" constant="20" id="BOW-ge-XQo"/>
<constraint firstItem="Qfo-d9-XFU" firstAttribute="centerX" secondItem="bCn-MS-Ze3" secondAttribute="centerX" id="G5X-EZ-BJ9"/>
<constraint firstItem="DTl-PQ-yUJ" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" constant="20" id="JcO-bd-3tx"/>
<constraint firstItem="MPd-an-39B" firstAttribute="centerX" secondItem="bCn-MS-Ze3" secondAttribute="centerX" id="Mi8-Qh-pdp"/>
<constraint firstItem="MPd-an-39B" firstAttribute="top" secondItem="bCn-MS-Ze3" secondAttribute="bottom" constant="58" id="dwu-ct-PBn"/>
<constraint firstItem="SJa-Lo-eB4" firstAttribute="centerY" secondItem="Qfo-d9-XFU" secondAttribute="centerY" id="fnF-0t-D1h"/>
<constraint firstItem="DTl-PQ-yUJ" firstAttribute="centerX" secondItem="Qfo-d9-XFU" secondAttribute="centerX" id="oVm-g9-dJg"/>
<constraint firstItem="bCn-MS-Ze3" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="y3Z-Xj-RoM"/>
<constraint firstItem="bCn-MS-Ze3" firstAttribute="top" secondItem="Qfo-d9-XFU" secondAttribute="bottom" constant="36.5" id="yNj-eY-Uvk"/>
</constraints>
Expand Down
1 change: 1 addition & 0 deletions LiveLabel/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class ViewController: UIViewController {
*/
func setUp(){
// LyricLabel Usage
lyricLabel.color = UIColor.blue()
let timer = Timer.scheduledTimer(timeInterval: 1.0/40.0, target: self, selector: #selector(update), userInfo: nil, repeats: true);
timer.fire()

Expand Down
Binary file modified out.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 203823c

Please sign in to comment.