Open caicaibuchicai opened 1 year ago
let later = "\int_1^2f\bigg(\frac1x\biggr)dx=" let mathLabel = MTMathUILabel(frame: CGRectMake(0, 0, 300, 300 )) mathLabel.latex = later mathLabel.textColor = .black mathLabel.textAlignment = .center view.addSubview(mathLabel)
MTMathAtomFactory.addLatexSymbol("bigg", value: MTMathAtomFactory.operator(withName: "", limits: true))
let later = "\int_1^2f\bigg(\frac1x\biggr)dx=" let mathLabel = MTMathUILabel(frame: CGRectMake(0, 0, 300, 300 )) mathLabel.latex = later mathLabel.textColor = .black mathLabel.textAlignment = .center view.addSubview(mathLabel)