Skip to content

Commit e86222f

Browse files
committed
Update for Xcode 13 beta
annotate with `@available(iOSApplicationExtension, unavailable)` where needed
1 parent b648e4c commit e86222f

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed

Example/FTLinearActivityIndicator.xcodeproj/project.pbxproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
isa = PBXProject;
210210
attributes = {
211211
LastSwiftUpdateCheck = 0830;
212-
LastUpgradeCheck = 1250;
212+
LastUpgradeCheck = 1300;
213213
ORGANIZATIONNAME = CocoaPods;
214214
TargetAttributes = {
215215
607FACCF1AFB9204008FA782 = {
@@ -225,10 +225,9 @@
225225
};
226226
buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "FTLinearActivityIndicator" */;
227227
compatibilityVersion = "Xcode 3.2";
228-
developmentRegion = English;
228+
developmentRegion = en;
229229
hasScannedForEncodings = 0;
230230
knownRegions = (
231-
English,
232231
en,
233232
Base,
234233
);

Example/FTLinearActivityIndicator.xcodeproj/xcshareddata/xcschemes/FTLinearActivityIndicator-Example.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1250"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/FTLinearActivityIndicator/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import UIKit
1010
import FTLinearActivityIndicator
1111

12+
@available(iOSApplicationExtension, unavailable)
1213
@UIApplicationMain
1314
class AppDelegate: UIResponder, UIApplicationDelegate {
1415

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14868" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19142.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14824"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19129"/>
7+
<capability name="System colors in document resources" minToolsVersion="11.0"/>
78
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
89
</dependencies>
910
<objects>
@@ -13,29 +14,26 @@
1314
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
1415
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1516
<subviews>
16-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 CocoaPods. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
17-
<rect key="frame" x="20" y="439" width="440" height="21"/>
18-
<fontDescription key="fontDescription" type="system" pointSize="17"/>
19-
<nil key="highlightedColor"/>
20-
</label>
2117
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="FTLinearActivityIndicator" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
2218
<rect key="frame" x="20" y="139.5" width="440" height="43"/>
2319
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
2420
<nil key="highlightedColor"/>
2521
</label>
2622
</subviews>
27-
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
23+
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
2824
<constraints>
2925
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
3026
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
31-
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
32-
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
33-
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
3427
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
3528
</constraints>
3629
<nil key="simulatedStatusBarMetrics"/>
3730
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
3831
<point key="canvasLocation" x="548" y="455"/>
3932
</view>
4033
</objects>
34+
<resources>
35+
<systemColor name="systemBackgroundColor">
36+
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
37+
</systemColor>
38+
</resources>
4139
</document>

Example/FTLinearActivityIndicator/ViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import UIKit
1010
import FTLinearActivityIndicator
1111

12+
@available(iOSApplicationExtension, unavailable)
1213
class ViewController: UIViewController {
1314
@IBOutlet var standAloneIndicator: FTLinearActivityIndicator?
1415
@IBOutlet var imagePickerContainer: UIView!

FTLinearActivityIndicator.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 = 'FTLinearActivityIndicator'
3-
s.version = '1.4'
3+
s.version = '1.4.2'
44
s.summary = 'Add the missing network activity indicator on iPhone X'
55

66
s.description = <<-DESC

FTLinearActivityIndicator/Classes/UIApplication+LinearNetworkActivityIndicator.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import UIKit
1010

11+
@available(iOSApplicationExtension, unavailable)
1112
extension UIApplication {
1213
@objc final public class func configureLinearNetworkActivityIndicatorIfNeeded() {
1314
#if !targetEnvironment(macCatalyst)
@@ -124,6 +125,7 @@ extension UIApplication {
124125
}
125126

126127
#if !targetEnvironment(macCatalyst)
128+
@available(iOSApplicationExtension, unavailable)
127129
extension UIViewController {
128130
@objc final public class func configureLinearNetworkActivityIndicator() {
129131
DispatchQueue.once {

0 commit comments

Comments
 (0)