MathWidget is not showing up as a subview in Swift

I am using MathWidget in my project and it is working fine when I open up its UIViewController as a parent controller like this:

let subViewEE = MathWidgetClassName()

self.present(subViewEE, animated: true, completion: nil)

But when I am trying to add it as a subview inside present view controller nothing shows up, here is the code:

let mathWidget= MathWidgetClassName()



mathWidget.didMove(toParentViewController: self)

Can anyone help to display MathWidget as a subview in present UIViewController?

1 Comment

Dear Yasir,

thank you for contacting us.

Currently, did you set the frame of your subview?

Best regards,

Login or Signup to post a comment