FIx tests not building on iOS
This commit is contained in:
parent
d396a800f6
commit
c8512fa71e
|
@ -12,6 +12,9 @@ final class AttributedStringConverterTests: XCTestCase {
|
||||||
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
private let font = UIFont.systemFont(ofSize: 13)
|
private let font = UIFont.systemFont(ofSize: 13)
|
||||||
|
private lazy var italicFont = UIFont(descriptor: font.fontDescriptor.withSymbolicTraits([.traitItalic])!, size: 13)
|
||||||
|
private lazy var boldFont = UIFont(descriptor: font.fontDescriptor.withSymbolicTraits([.traitBold])!, size: 13)
|
||||||
|
private lazy var boldItalicFont = UIFont(descriptor: font.fontDescriptor.withSymbolicTraits([.traitBold, .traitItalic])!, size: 13)
|
||||||
private let monospaceFont = UIFont.monospacedSystemFont(ofSize: 13, weight: .regular)
|
private let monospaceFont = UIFont.monospacedSystemFont(ofSize: 13, weight: .regular)
|
||||||
#elseif os(macOS)
|
#elseif os(macOS)
|
||||||
private let font = NSFont.systemFont(ofSize: 13)
|
private let font = NSFont.systemFont(ofSize: 13)
|
||||||
|
|
Loading…
Reference in New Issue