Configured colours and added additional images to ready app for iOS 13 dark mode

This commit is contained in:
Deniz Duezgoeren
2019-10-08 21:37:42 +02:00
parent b7bc097664
commit 85efe3955d
310 changed files with 6512 additions and 4492 deletions
+10 -4
View File
@@ -750,9 +750,15 @@ open class Node: Equatable, Hashable {
}
open func tail(_ node: Node, _ depth: Int)throws {
// When compiling a release optimized swift linux 4.2 version the "saves a void hit."
// causes a SIL error. Removing optimization on linux until a fix is found.
#if os(Linux)
try node.outerHtmlTail(accum, depth, out)
#else
if (!(node.nodeName() == OuterHtmlVisitor.text)) { // saves a void hit.
try node.outerHtmlTail(accum, depth, out)
}
#endif
}
}
@@ -772,10 +778,10 @@ open class Node: Equatable, Hashable {
///
/// Hash values are not guaranteed to be equal across different executions of
/// your program. Do not save hash values to use during a future execution.
public var hashValue: Int {
return description.hashValue ^ (baseUri?.hashValue ?? 31)
}
public func hash(into hasher: inout Hasher) {
hasher.combine(description)
hasher.combine(baseUri)
}
}
extension Node: CustomStringConvertible {