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
In Xcode 9.4.1 (Swift 4.1.2) if you try to get the child bricks for a Brick instance, the compiler complains: Ambiguous reference to member 'bricks(_:layout:)'
Example (using code from DetailsViewController in the Demo App):
lettitle="title".build(UILabel.self).style([.numberOfLines(0),.text("Lorem Ipsum is simply dummy text of the printing industry")])letdescription="description".build(UILabel.self).style([.textColor(UIColor.lightGray),.numberOfLines(0),.font(UIFont.systemFont(ofSize:14)),.text("Lorem Ipsum has been the industry's standard dummy text ever since the 1500s")])letredBlock="red".build().style(Style.redBlockStyle)letgreenBlock="green".build().style(Style.greenBlockStyle)letblueBlock="blue".build(UIImageView.self).style(Style.blueBlockStyle +[Appearance.custom(["shadowColor":UIColor.brown,"shadowOpacity":Float(1.0)])])letblocks=Brick.union("blocks", bricks:[
redBlock.height(50),
greenBlock.height(80),
blueBlock.height(30)],
axis:.horizontal, align:.top, distribution:.fillEqually, metrics:LayoutMetrics(10,10,10,10,10,10)).style(Style.blocksStyle)
Then call add the line:
print(blocks.blocks.count)//Generates compiler error: Ambiguous reference to member 'bricks(_:layout:)'
The text was updated successfully, but these errors were encountered:
In Xcode 9.4.1 (Swift 4.1.2) if you try to get the child bricks for a
Brick
instance, the compiler complains:Ambiguous reference to member 'bricks(_:layout:)'
Example (using code from
DetailsViewController
in the Demo App):Then call add the line:
The text was updated successfully, but these errors were encountered: