Skip to content

Commit b556546

Browse files
committed
Merge branch 'develop' into release/1.15.0
2 parents 364ee36 + 78eb84b commit b556546

5 files changed

Lines changed: 1 addition & 31 deletions

File tree

Aztec.xcodeproj/project.pbxproj

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

99
/* Begin PBXBuildFile section */
1010
1A830346228583B200798076 /* NSBundle+AztecBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A830345228583B200798076 /* NSBundle+AztecBundle.swift */; };
11-
1EDDEBA5239A68320000A957 /* XCodeVersion.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 1EDDEBA4239A68320000A957 /* XCodeVersion.xcconfig */; };
1211
40359F261FD88A5F00B1C1D2 /* HRElementConverter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40359F251FD88A5F00B1C1D2 /* HRElementConverter.swift */; };
1312
40359F281FD88A7900B1C1D2 /* BRElementConverter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40359F271FD88A7900B1C1D2 /* BRElementConverter.swift */; };
1413
40A2986D1FD61B0C00AEDF3B /* ElementConverter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40A2986C1FD61B0C00AEDF3B /* ElementConverter.swift */; };
@@ -284,7 +283,6 @@
284283

285284
/* Begin PBXFileReference section */
286285
1A830345228583B200798076 /* NSBundle+AztecBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSBundle+AztecBundle.swift"; sourceTree = "<group>"; };
287-
1EDDEBA4239A68320000A957 /* XCodeVersion.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = XCodeVersion.xcconfig; sourceTree = "<group>"; };
288286
40359F251FD88A5F00B1C1D2 /* HRElementConverter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HRElementConverter.swift; sourceTree = "<group>"; };
289287
40359F271FD88A7900B1C1D2 /* BRElementConverter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BRElementConverter.swift; sourceTree = "<group>"; };
290288
40A2986C1FD61B0C00AEDF3B /* ElementConverter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ElementConverter.swift; sourceTree = "<group>"; };
@@ -557,14 +555,6 @@
557555
/* End PBXFrameworksBuildPhase section */
558556

559557
/* Begin PBXGroup section */
560-
1EDDEBA3239A68090000A957 /* config */ = {
561-
isa = PBXGroup;
562-
children = (
563-
1EDDEBA4239A68320000A957 /* XCodeVersion.xcconfig */,
564-
);
565-
path = config;
566-
sourceTree = "<group>";
567-
};
568558
40A2986F1FD61B1C00AEDF3B /* Implementations */ = {
569559
isa = PBXGroup;
570560
children = (
@@ -611,7 +601,6 @@
611601
FF5B98E21DC29D0C00571CA4 /* README.md */,
612602
FF7A1C4A1E51F05700C4C7C8 /* CONTRIBUTING.md */,
613603
FFC2BBF81F2A25CF00E404FB /* CHANGELOG.md */,
614-
1EDDEBA3239A68090000A957 /* config */,
615604
5951CB901D8BC93600E1866F /* Aztec */,
616605
5951CB9B1D8BC93600E1866F /* AztecTests */,
617606
599F255A1D8BCD97002871D6 /* Frameworks */,
@@ -1509,7 +1498,6 @@
15091498
isa = PBXResourcesBuildPhase;
15101499
buildActionMask = 2147483647;
15111500
files = (
1512-
1EDDEBA5239A68320000A957 /* XCodeVersion.xcconfig in Resources */,
15131501
FF1F56A3239562B900E93A30 /* html_colors.json in Resources */,
15141502
FF0714021EFD78AF00E50713 /* Media.xcassets in Resources */,
15151503
);
@@ -1921,7 +1909,6 @@
19211909
};
19221910
5951CBA31D8BC93600E1866F /* Debug */ = {
19231911
isa = XCBuildConfiguration;
1924-
baseConfigurationReference = 1EDDEBA4239A68320000A957 /* XCodeVersion.xcconfig */;
19251912
buildSettings = {
19261913
CLANG_ENABLE_MODULES = YES;
19271914
CODE_SIGN_IDENTITY = "";

Aztec/Classes/TextKit/ColorProvider.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,10 @@ public class ColorProvider {
4646
}
4747

4848
public lazy var codeBackgroungColor: UIColor = {
49-
#if XCODE11
5049
if #available(iOS 13.0, *) {
5150
return .secondarySystemBackground
5251
} else {
5352
return .lightGray
5453
}
55-
#endif
56-
return .lightGray
5754
}()
5855
}

Aztec/Classes/TextKit/TextView.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,11 @@ open class TextView: UITextView {
255255
}
256256

257257
open lazy var defaultTextColor: UIColor? = {
258-
#if XCODE11
259258
if #available(iOS 13.0, *) {
260259
return UIColor.label
261260
} else {
262261
return UIColor.darkText
263-
}
264-
#endif
265-
return UIColor.darkText
262+
}
266263
}()
267264

268265
open override var textColor: UIColor? {

Aztec/Classes/TextKit/TextViewPasteboardDelegate.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,9 @@ open class AztecTextViewPasteboardDelegate: TextViewPasteboardDelegate {
8181
}
8282

8383
private func fixColors(in string: NSAttributedString, using baseColor: UIColor?) -> NSAttributedString {
84-
#if XCODE11
8584
guard #available(iOS 13.0, *) else {
8685
return string
8786
}
88-
8987
let colorToUse = baseColor ?? UIColor.label
9088

9189
let newString = NSMutableAttributedString(attributedString: string)
@@ -95,9 +93,6 @@ open class AztecTextViewPasteboardDelegate: TextViewPasteboardDelegate {
9593
}
9694
}
9795
return newString
98-
#else
99-
return string
100-
#endif
10196
}
10297

10398
/// Tries to paste raw text from the clipboard, replacing the selected range.

config/XCodeVersion.xcconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)