I am very new to app development, especially in iOS using Swift 3. For now, I want to display math formulas with swift using "iosMath". I followed the steps from this "Using iosMath in Swift" but I do not know what he means by creating a bridging header and don't know how to use iosMath in my code. For example, I want to enter a number and in the next line, the program shows the square root of the entered number. Here's an example of what I want to do:
import UIKit
import iosMath
class ViewController: UIViewController {
@IBOutlet weak var numberField: UITextField!
@IBOutlet weak var resultLabel: UILabel!
@IBAction func computeTapped(_ sender: Any) {
guard let numberValue = numberField.text else {
return
}
let result = numberValue
resultLabel.text = "The Square root of \(result) is \(result)"
resultLabel.isHidden = false
}
}
Hope you can help me :) Thanks in advance!