mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
Try to fix mac build
This commit is contained in:
parent
4751d8b301
commit
75678de4ec
@ -1148,7 +1148,7 @@ open class SVGParser {
|
||||
baseline: .alphabetic,
|
||||
place: place,
|
||||
opacity: opacity)
|
||||
} else if let tspanElement = element as? XMLElement,
|
||||
} else if let tspanElement = element as? SWXMLHash.XMLElement,
|
||||
tspanElement.name == "tspan" {
|
||||
// parse as <tspan> element
|
||||
// ultimately skip it if it cannot be parsed
|
||||
@ -1179,7 +1179,7 @@ open class SVGParser {
|
||||
return collection
|
||||
}
|
||||
|
||||
fileprivate func parseTspan(_ element: XMLElement,
|
||||
fileprivate func parseTspan(_ element: SWXMLHash.XMLElement,
|
||||
withWhitespace: Bool = false,
|
||||
textAnchor: String?,
|
||||
fill: Fill?,
|
||||
|
@ -59,14 +59,12 @@ open class MacawView: MView, MGestureRecognizerDelegate {
|
||||
#if os(OSX)
|
||||
open override var layer: CALayer? {
|
||||
didSet {
|
||||
guard self.layer != nil else {
|
||||
return
|
||||
}
|
||||
if self.layer == nil {
|
||||
initializeView()
|
||||
|
||||
renderer = RenderUtils.createNodeRenderer(node, view: drawingView)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@objc public convenience required init?(coder aDecoder: NSCoder) {
|
||||
|
Loading…
Reference in New Issue
Block a user