You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #35, but has some additional build errors.
I'm compiling this on Ubuntu 16.04 LTS and there are several other errors when compiling the Cacao module, aside from the UndoManager. I'm using Swift 4.1.
In several locations, properties are defined in both Foundation and Silica.
Output from swift build.
Cacao/Sources/Cacao/TextRendering.swift:50:44: error: ambiguous use of 'width'
case .center: textRect.origin.x = (bounds.width - textRect.width) / 2
^
Foundation.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get }
^
Silica.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get set }
^
Cacao/Sources/Cacao/TextRendering.swift:52:42: error: ambiguous use of 'width'
case .right: textRect.origin.x = bounds.width - textRect.width
^
Foundation.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get }
^
Silica.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get set }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:38:61: error: ambiguous use of 'minX'
let thumbPath = UIBezierPath(roundedRect: CGRect(x: frame.minX + 0.5, y: frame.minY + 0.5, width: frame.width - 1, height: frame.height - 1), cornerRadius: 14)
^
Foundation.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Silica.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:44:73: error: ambiguous use of 'minX'
let thumbShadowStrokePath = UIBezierPath(roundedRect: CGRect(x: frame.minX + 0.5, y: frame.minY + 0.5, width: frame.width - 1, height: frame.height - 1), cornerRadius: 14)
^
Foundation.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Silica.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:57:32: error: ambiguous use of 'minX'
context.translateBy(x: resizedFrame.minX, y: resizedFrame.minY)
^
Foundation.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Silica.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:58:28: error: ambiguous use of 'width'
context.scaleBy(x: resizedFrame.width / 51, y: resizedFrame.height / 31)
^
Foundation.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get }
^
Silica.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get set }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:70:32: error: ambiguous use of 'minX'
context.translateBy(x: backgroundViewRect.minX, y: backgroundViewRect.minY)
^
Foundation.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Silica.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:80:32: error: ambiguous use of 'minX'
context.translateBy(x: thumbRect.minX, y: thumbRect.minY)
^
Foundation.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Silica.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:82:75: error: ambiguous use of 'width'
UISwitchStyleKit.drawSwitchThumb(frame: CGRect(x: 0, y: 0, width: thumbRect.width, height: thumbRect.height), thumbColor: thumbColor)
^
Foundation.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get }
^
Silica.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get set }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:96:32: error: ambiguous use of 'minX'
context.translateBy(x: resizedFrame.minX, y: resizedFrame.minY)
^
Foundation.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Silica.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:97:28: error: ambiguous use of 'width'
context.scaleBy(x: resizedFrame.width / 51, y: resizedFrame.height / 31)
^
Foundation.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get }
^
Silica.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get set }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:133:32: error: ambiguous use of 'width'
scales.width = abs(target.width / rect.width)
^
Foundation.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get }
^
Silica.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get set }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:134:33: error: ambiguous use of 'height'
scales.height = abs(target.height / rect.height)
^
Foundation.CGRect:5:16: note: found this candidate
public var height: Foundation.CGFloat { get }
^
Silica.CGRect:5:16: note: found this candidate
public var height: Foundation.CGFloat { get set }
^
Cacao/Sources/Cacao/StyleKit/UISwitchStyleKit.swift:150:26: error: ambiguous use of 'standardized'
var result = rect.standardized
^
Foundation.CGRect:17:16: note: found this candidate
public var standardized: Foundation.CGRect { get }
^
Silica.CGRect:12:16: note: found this candidate
public var standardized: Foundation.CGRect { get }
^
Cacao/Sources/Cacao/SDL.swift:82:17: warning: result of call to 'run(mode:before:)' is unused
runloop.run(mode: .defaultRunLoopMode, before: Date() + (1.0 / TimeInterval(framesPerSecond)))
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cacao/Sources/Cacao/UIBezierPath.swift:85:35: error: ambiguous use of 'maxX'
let topRight = CGPoint(x: rect.maxX, y: rect.minY)
^
Foundation.CGRect:8:16: note: found this candidate
public var maxX: Foundation.CGFloat { get }
^
Silica.CGRect:8:16: note: found this candidate
public var maxX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/UIBezierPath.swift:86:38: error: ambiguous use of 'maxX'
let bottomRight = CGPoint(x: rect.maxX, y: rect.maxY)
^
Foundation.CGRect:8:16: note: found this candidate
public var maxX: Foundation.CGFloat { get }
^
Silica.CGRect:8:16: note: found this candidate
public var maxX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/UIBezierPath.swift:87:37: error: ambiguous use of 'minX'
let bottomLeft = CGPoint(x: rect.minX, y: rect.maxY)
^
Foundation.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Silica.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/UIScrollView.swift:141:24: error: ambiguous use of 'intersection'
var goalRect = rect.intersection(contentRect)
^
Foundation.CGRect:21:17: note: found this candidate
public func intersection(_ r2: Foundation.CGRect) -> Foundation.CGRect
^
Silica.CGRect:20:17: note: found this candidate
public func intersection(_ other: Foundation.CGRect) -> Foundation.CGRect
^
Cacao/Sources/Cacao/UITableView.swift:337:28: error: ambiguous use of 'intersects'
.filter { self.bounds.intersects(self.rectForRow(at: $0)) } // get visible cells
^
Foundation.CGRect:22:17: note: found this candidate
public func intersects(_ r2: Foundation.CGRect) -> Bool
^
Silica.CGRect:19:17: note: found this candidate
public func intersects(_ r2: Foundation.CGRect) -> Bool
^
Cacao/Sources/Cacao/UITableView.swift:299:24: error: ambiguous use of 'intersects'
if rect.intersects(simpleRowRect) {
^
Foundation.CGRect:22:17: note: found this candidate
public func intersects(_ r2: Foundation.CGRect) -> Bool
^
Silica.CGRect:19:17: note: found this candidate
public func intersects(_ r2: Foundation.CGRect) -> Bool
^
Cacao/Sources/Cacao/UITableView.swift:873:32: error: ambiguous use of 'height'
tableViewHeight += sectionRect.height
^
Foundation.CGRect:5:16: note: found this candidate
public var height: Foundation.CGFloat { get }
^
Silica.CGRect:5:16: note: found this candidate
public var height: Foundation.CGFloat { get set }
^
Cacao/Sources/Cacao/UITableView.swift:876:19: error: ambiguous use of 'intersects'
guard sectionRect.intersects(visibleBounds)
^
Foundation.CGRect:22:17: note: found this candidate
public func intersects(_ r2: Foundation.CGRect) -> Bool
^
Silica.CGRect:19:17: note: found this candidate
public func intersects(_ r2: Foundation.CGRect) -> Bool
^
Cacao/Sources/Cacao/UITableView.swift:893:23: error: ambiguous use of 'intersects'
guard rowRect.intersects(visibleBounds),
^
Foundation.CGRect:22:17: note: found this candidate
public func intersects(_ r2: Foundation.CGRect) -> Bool
^
Silica.CGRect:19:17: note: found this candidate
public func intersects(_ r2: Foundation.CGRect) -> Bool
^
Cacao/Sources/Cacao/UITableView.swift:954:12: error: ambiguous use of 'isNull'
if rect.isNull == false, rect.size.height > 0 {
^
Foundation.CGRect:14:16: note: found this candidate
public var isNull: Bool { get }
^
Silica.CGRect:15:16: note: found this candidate
public var isNull: Bool { get }
^
Cacao/Sources/Cacao/UIView.swift:907:28: error: ambiguous use of 'minX'
return (point.x >= rect.minX && point.x <= rect.maxX)
^
Foundation.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Silica.CGRect:6:16: note: found this candidate
public var minX: Foundation.CGFloat { get }
^
Cacao/Sources/Cacao/UIViewContentMode.swift:53:30: error: ambiguous use of 'width'
let widthRatio = bounds.width / size.width
^
Foundation.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get }
^
Silica.CGRect:4:16: note: found this candidate
public var width: Foundation.CGFloat { get set }
^
Cacao/Sources/Cacao/UIViewContentMode.swift:54:31: error: ambiguous use of 'height'
let heightRatio = bounds.height / size.height
^
Foundation.CGRect:5:16: note: found this candidate
public var height: Foundation.CGFloat { get }
^
Silica.CGRect:5:16: note: found this candidate
public var height: Foundation.CGFloat { get set }
The text was updated successfully, but these errors were encountered:
Related to #35, but has some additional build errors.
I'm compiling this on Ubuntu 16.04 LTS and there are several other errors when compiling the Cacao module, aside from the
UndoManager
. I'm using Swift 4.1.In several locations, properties are defined in both Foundation and Silica.
Output from
swift build
.The text was updated successfully, but these errors were encountered: