func createNewBubbleParentNode(_ text: String) -> SCNNode {
let billBoardConstraint = SCNBillboardConstraint()
billBoardConstraint.freeAxes = SCNBillboardAxis.Y
let bubble = SCNText(string: text, extrusionDepth: CGFloat(bubbleDepth))
var font = UIFont(name: "Futura", size: 0.15)
bubble.font = font
bubble.alignmentMode = kCAAlignmentCenter
return bubbleNodeParent
}
How can I solve 'Cannot assign value of type 'CATextLayerAlignmentMode' to type 'String' with this type of function?
Thanks for your answers!!
Loïc
