Skip to content

Commit f572146

Browse files
committed
Updated to version 1.4.9
1 parent 86c80c6 commit f572146

File tree

11 files changed

+93
-25
lines changed

11 files changed

+93
-25
lines changed

Example/THLabelExample.xcodeproj/project.pbxproj

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,16 @@
155155
74338E5416830723001B12C9 /* Project object */ = {
156156
isa = PBXProject;
157157
attributes = {
158-
LastUpgradeCheck = 0800;
158+
LastUpgradeCheck = 1030;
159159
ORGANIZATIONNAME = tobiha.de;
160160
};
161161
buildConfigurationList = 74338E5716830723001B12C9 /* Build configuration list for PBXProject "THLabelExample" */;
162162
compatibilityVersion = "Xcode 3.2";
163-
developmentRegion = English;
163+
developmentRegion = en;
164164
hasScannedForEncodings = 0;
165165
knownRegions = (
166166
en,
167+
Base,
167168
);
168169
mainGroup = 74338E5216830723001B12C9;
169170
productRefGroup = 74338E5E16830723001B12C9 /* Products */;
@@ -220,15 +221,24 @@
220221
isa = XCBuildConfiguration;
221222
buildSettings = {
222223
ALWAYS_SEARCH_USER_PATHS = NO;
224+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
223225
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
224226
CLANG_CXX_LIBRARY = "libc++";
225227
CLANG_ENABLE_OBJC_ARC = YES;
228+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
226229
CLANG_WARN_BOOL_CONVERSION = YES;
230+
CLANG_WARN_COMMA = YES;
227231
CLANG_WARN_CONSTANT_CONVERSION = YES;
232+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
228233
CLANG_WARN_EMPTY_BODY = YES;
229234
CLANG_WARN_ENUM_CONVERSION = YES;
230235
CLANG_WARN_INFINITE_RECURSION = YES;
231236
CLANG_WARN_INT_CONVERSION = YES;
237+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
238+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
239+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
240+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
241+
CLANG_WARN_STRICT_PROTOTYPES = YES;
232242
CLANG_WARN_SUSPICIOUS_MOVE = YES;
233243
CLANG_WARN_UNREACHABLE_CODE = YES;
234244
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -262,15 +272,24 @@
262272
isa = XCBuildConfiguration;
263273
buildSettings = {
264274
ALWAYS_SEARCH_USER_PATHS = NO;
275+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
265276
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
266277
CLANG_CXX_LIBRARY = "libc++";
267278
CLANG_ENABLE_OBJC_ARC = YES;
279+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
268280
CLANG_WARN_BOOL_CONVERSION = YES;
281+
CLANG_WARN_COMMA = YES;
269282
CLANG_WARN_CONSTANT_CONVERSION = YES;
283+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
270284
CLANG_WARN_EMPTY_BODY = YES;
271285
CLANG_WARN_ENUM_CONVERSION = YES;
272286
CLANG_WARN_INFINITE_RECURSION = YES;
273287
CLANG_WARN_INT_CONVERSION = YES;
288+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
289+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
290+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
291+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
292+
CLANG_WARN_STRICT_PROTOTYPES = YES;
274293
CLANG_WARN_SUSPICIOUS_MOVE = YES;
275294
CLANG_WARN_UNREACHABLE_CODE = YES;
276295
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;

Example/THLabelExample/Images.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@
8484
"idiom" : "ipad",
8585
"size" : "83.5x83.5",
8686
"scale" : "2x"
87+
},
88+
{
89+
"idiom" : "ios-marketing",
90+
"size" : "1024x1024",
91+
"scale" : "1x"
8792
}
8893
],
8994
"info" : {

Example/THLabelExample/LaunchScreen.storyboard

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<device id="retina6_1" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
36
<dependencies>
47
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
6-
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
79
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
810
</dependencies>
911
<scenes>
@@ -16,15 +18,17 @@
1618
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
1719
</layoutGuides>
1820
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
19-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
21+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
2022
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2123
<subviews>
22-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright © 2012-2016 tobiha.de. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
24+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright © 2012-2019 tobiha.de. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
25+
<rect key="frame" x="20" y="855.5" width="374" height="20.5"/>
2326
<fontDescription key="fontDescription" type="system" pointSize="17"/>
2427
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2528
<nil key="highlightedColor"/>
2629
</label>
2730
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="THLabel" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
31+
<rect key="frame" x="20" y="278" width="374" height="43"/>
2832
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
2933
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3034
<nil key="highlightedColor"/>

Example/THLabelExample/Main.storyboard

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="456-qT-Q4o">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="456-qT-Q4o">
3+
<device id="retina6_1" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
36
<dependencies>
47
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
69
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
710
</dependencies>
811
<scenes>
@@ -15,20 +18,23 @@
1518
<viewControllerLayoutGuide type="bottom" id="YgO-bg-AGl"/>
1619
</layoutGuides>
1720
<view key="view" contentMode="scaleToFill" id="SDI-Oa-UQz">
18-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
21+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
1922
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2023
<subviews>
2124
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RvV-Ry-Pmc">
25+
<rect key="frame" x="206.5" y="44" width="1" height="68"/>
2226
<constraints>
2327
<constraint firstAttribute="width" constant="1" id="Idk-oI-pQy"/>
2428
</constraints>
2529
</view>
2630
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="242-9J-wkw">
31+
<rect key="frame" x="206.5" y="162" width="1" height="68.5"/>
2732
<constraints>
2833
<constraint firstAttribute="width" constant="1" id="7H9-cU-Chf"/>
2934
</constraints>
3035
</view>
3136
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" text="Inner Shadow" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7Hs-P2-hla" customClass="THLabel">
37+
<rect key="frame" x="80" y="230.5" width="254.5" height="48"/>
3238
<fontDescription key="fontDescription" type="boldSystem" pointSize="40"/>
3339
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3440
<nil key="highlightedColor"/>
@@ -48,11 +54,13 @@
4854
</variation>
4955
</label>
5056
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="f7f-G5-eel">
57+
<rect key="frame" x="206.5" y="278.5" width="1" height="68"/>
5158
<constraints>
5259
<constraint firstAttribute="width" constant="1" id="mwt-jD-Kbj"/>
5360
</constraints>
5461
</view>
5562
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" text="Stroke" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5jH-TU-5Wy" customClass="THLabel">
63+
<rect key="frame" x="146.5" y="346.5" width="121.5" height="48"/>
5664
<fontDescription key="fontDescription" type="boldSystem" pointSize="40"/>
5765
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
5866
<nil key="highlightedColor"/>
@@ -69,11 +77,13 @@
6977
</variation>
7078
</label>
7179
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GY1-3x-3u4">
80+
<rect key="frame" x="206.5" y="394.5" width="1" height="68"/>
7281
<constraints>
7382
<constraint firstAttribute="width" constant="1" id="tGI-oT-twv"/>
7483
</constraints>
7584
</view>
7685
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" text="Fill Gradient" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nq3-xL-Qnv" customClass="THLabel">
86+
<rect key="frame" x="96" y="462.5" width="222" height="48"/>
7787
<fontDescription key="fontDescription" type="boldSystem" pointSize="40"/>
7888
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
7989
<nil key="highlightedColor"/>
@@ -90,11 +100,13 @@
90100
</variation>
91101
</label>
92102
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zru-we-rnl">
103+
<rect key="frame" x="206.5" y="510.5" width="1" height="68"/>
93104
<constraints>
94105
<constraint firstAttribute="width" constant="1" id="6zq-Xu-jdY"/>
95106
</constraints>
96107
</view>
97108
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" text="Fade Truncating" lineBreakMode="clip" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4hn-LK-JBo" customClass="THLabel">
109+
<rect key="frame" x="67" y="578.5" width="280" height="48"/>
98110
<constraints>
99111
<constraint firstAttribute="width" constant="280" id="i8g-AK-I01"/>
100112
</constraints>
@@ -106,11 +118,13 @@
106118
</variation>
107119
</label>
108120
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Tll-cY-m2c">
121+
<rect key="frame" x="206.5" y="626.5" width="1" height="68.5"/>
109122
<constraints>
110123
<constraint firstAttribute="width" constant="1" id="nbB-o5-t9w"/>
111124
</constraints>
112125
</view>
113126
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" text="Everything" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rm8-tw-CKi" customClass="THLabel">
127+
<rect key="frame" x="107" y="695" width="200" height="50"/>
114128
<fontDescription key="fontDescription" type="boldSystem" pointSize="40"/>
115129
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
116130
<nil key="highlightedColor"/>
@@ -144,11 +158,13 @@
144158
</variation>
145159
</label>
146160
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yMb-iY-HPI">
161+
<rect key="frame" x="206.5" y="745" width="1" height="68"/>
147162
<constraints>
148163
<constraint firstAttribute="width" constant="1" id="c0E-Sw-2rX"/>
149164
</constraints>
150165
</view>
151166
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" text="Shadow Blur" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bgk-sv-MPR" customClass="THLabel">
167+
<rect key="frame" x="90" y="112" width="234" height="50"/>
152168
<fontDescription key="fontDescription" type="boldSystem" pointSize="40"/>
153169
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
154170
<nil key="highlightedColor"/>
@@ -247,18 +263,19 @@
247263
<objects>
248264
<tableViewController id="xNT-Vz-byx" customClass="TableViewController" sceneMemberID="viewController">
249265
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="88" sectionHeaderHeight="22" sectionFooterHeight="22" id="ZJ2-1s-TVL">
250-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
266+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
251267
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
252268
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
253269
<prototypes>
254270
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="Cell" id="mCV-Q8-hKW" customClass="TableViewCell">
255-
<rect key="frame" x="0.0" y="22" width="375" height="88"/>
271+
<rect key="frame" x="0.0" y="22" width="414" height="88"/>
256272
<autoresizingMask key="autoresizingMask"/>
257273
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="mCV-Q8-hKW" id="9WU-LZ-o95">
258-
<frame key="frameInset" width="375" height="87"/>
274+
<rect key="frame" x="0.0" y="0.0" width="414" height="87.5"/>
259275
<autoresizingMask key="autoresizingMask"/>
260276
<subviews>
261277
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Hello World" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bsU-NM-FUa" customClass="THLabel">
278+
<rect key="frame" x="15" y="0.0" width="384" height="87.5"/>
262279
<fontDescription key="fontDescription" type="boldSystem" pointSize="40"/>
263280
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
264281
<nil key="highlightedColor"/>

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
THLabel
22

3-
Version 1.4.8, September 17th, 2016
3+
Version 1.4.9, September 20th, 2019
44

5-
Copyright (c) 2012-2016 Tobias Hagemann, tobiha.de
5+
Copyright (c) 2012-2019 Tobias Hagemann, tobiha.de
66

77
This software is provided 'as-is', without any express or implied
88
warranty. In no event will the authors be held liable for any damages

RELEASE NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 1.4.9
2+
3+
- Fixed warnings and showing incorrect fonts on iOS 13, kudos to @sochalewski.
4+
15
Version 1.4.8
26

37
- Fixed memory related crash.

THLabel.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'THLabel'
3-
s.version = '1.4.8'
3+
s.version = '1.4.9'
44
s.summary = 'THLabel is a subclass of UILabel, which additionally allows shadow blur, inner shadow, stroke text and fill gradient.'
55
s.homepage = 'https://github.com/tobihagemann/THLabel'
66
s.screenshots = 'https://raw.githubusercontent.com/tobihagemann/THLabel/master/screenshot.png'

0 commit comments

Comments
 (0)