Skip to content

Commit

Permalink
Merge swift-5 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Apr 5, 2019
2 parents 2e82fd4 + 2e41a4a commit b99235f
Show file tree
Hide file tree
Showing 45 changed files with 273 additions and 4,479 deletions.
21 changes: 4 additions & 17 deletions MarqueeLabel.podspec
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
Pod::Spec.new do |s|
s.name = "MarqueeLabel"
s.version = "3.2.1"
s.version = "4.0.0"
s.summary = "A drop-in replacement for UILabel, which automatically adds a scrolling marquee effect when needed."
s.homepage = "https://github.com/cbpowell/MarqueeLabel"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = "Charles Powell"
s.source = { :git => "https://github.com/cbpowell/MarqueeLabel.git", :tag => s.version.to_s }
s.frameworks = 'UIKit', 'QuartzCore'
s.requires_arc = true
s.ios.deployment_target = '6.0'
s.source_files = 'Sources/*.swift'
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'

s.default_subspec = 'ObjC'
s.swift_version = '4.2'

s.subspec 'ObjC' do |ss|
ss.ios.deployment_target = '6.0'
ss.tvos.deployment_target = '9.0'
ss.source_files = 'Sources/**/*.{h,m}'
end

s.subspec 'Swift' do |ss|
ss.ios.deployment_target = '8.0'
ss.tvos.deployment_target = '9.0'
ss.source_files = 'Sources/**/*.swift'
end
s.swift_version = '5.0'
end
3 changes: 0 additions & 3 deletions MarqueeLabel.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions MarqueeLabel/AppDelegate.h

This file was deleted.

45 changes: 0 additions & 45 deletions MarqueeLabel/AppDelegate.m

This file was deleted.

File renamed without changes.
File renamed without changes.
14 changes: 9 additions & 5 deletions MarqueeLabel/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina6_1" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
Expand All @@ -14,9 +18,9 @@
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
Expand Down
4 changes: 4 additions & 0 deletions MarqueeLabel/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIcons~ipad</key>
<dict/>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
Expand Down
26 changes: 15 additions & 11 deletions MarqueeLabel/MLHeader.xib
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina5_9" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
<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"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="MLHeader">
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="MLHeader" customModule="MarqueeLabelDemo" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="600" height="84"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
Expand All @@ -16,13 +20,13 @@
<subviews>
<view alpha="0.0" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xk6-CO-BR2">
<rect key="frame" x="0.0" y="83" width="600" height="1"/>
<color key="backgroundColor" red="0.84851453639999996" green="0.84851453639999996" blue="0.84851453639999996" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.84851453639999996" green="0.84851453639999996" blue="0.84851453639999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="Nq3-Oi-hSh"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="xk6-CO-BR2" firstAttribute="leading" secondItem="8MD-La-fvn" secondAttribute="leading" id="4JL-XI-XVv"/>
<constraint firstItem="xk6-CO-BR2" firstAttribute="centerX" secondItem="8MD-La-fvn" secondAttribute="centerX" id="Hei-Jr-eOH"/>
Expand All @@ -31,19 +35,19 @@
</constraints>
</view>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="MarqueeLabel" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LAL-Mn-m5t">
<rect key="frame" x="232" y="26" width="135" height="26"/>
<rect key="frame" x="232.66666666666663" y="26" width="135" height="26"/>
<fontDescription key="fontDescription" name="HelveticaNeue-Light" family="Helvetica Neue" pointSize="22"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Table View" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xQ3-Kt-beb">
<rect key="frame" x="317" y="48" width="50.5" height="13"/>
<rect key="frame" x="317" y="48" width="50.666666666666686" height="13"/>
<fontDescription key="fontDescription" name="HelveticaNeue-Light" family="Helvetica Neue" pointSize="11"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="LAL-Mn-m5t" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="4ix-Dq-Uez"/>
<constraint firstItem="xQ3-Kt-beb" firstAttribute="top" secondItem="LAL-Mn-m5t" secondAttribute="bottom" constant="-4" id="TRv-ft-pyx"/>
Expand Down

0 comments on commit b99235f

Please sign in to comment.