Debug update...

This commit is contained in:
Michael Griebling
2023-01-16 09:18:06 -05:00
parent ce4df65d44
commit 39f91cfbb3

View File

@@ -47,7 +47,7 @@ public enum MTTextAlignment : UInt {
When created it uses `[MTFontManager defaultFont]` as its font. This can be changed using When created it uses `[MTFontManager defaultFont]` as its font. This can be changed using
the `font` parameter. the `font` parameter.
*/ */
@IBDesignable //@IBDesignable
public class MTMathUILabel : MTView { public class MTMathUILabel : MTView {
/** The `MTMathList` to render. Setting this will remove any /** The `MTMathList` to render. Setting this will remove any
@@ -69,7 +69,7 @@ public class MTMathUILabel : MTView {
has been set. If latex has not been set, this will return the latex output for the has been set. If latex has not been set, this will return the latex output for the
`mathList` that is set. `mathList` that is set.
@see error */ @see error */
@IBInspectable // @IBInspectable
public var latex = "" { public var latex = "" {
didSet { didSet {
self.error = nil self.error = nil
@@ -104,7 +104,7 @@ public class MTMathUILabel : MTView {
} }
/** Convenience method to just set the size of the font without changing the fontface. */ /** Convenience method to just set the size of the font without changing the fontface. */
@IBInspectable // @IBInspectable
public var fontSize = MTFontManager.fontManager.kDefaultFontSize { public var fontSize = MTFontManager.fontManager.kDefaultFontSize {
didSet { didSet {
self.font = font?.copy(withSize: fontSize) self.font = font?.copy(withSize: fontSize)
@@ -112,7 +112,7 @@ public class MTMathUILabel : MTView {
} }
/** This sets the text color of the rendered math formula. The default color is black. */ /** This sets the text color of the rendered math formula. The default color is black. */
@IBInspectable // @IBInspectable
public var textColor:MTColor? = MTColor.black { public var textColor:MTColor? = MTColor.black {
didSet { didSet {
self.displayList?.textColor = textColor self.displayList?.textColor = textColor
@@ -124,7 +124,7 @@ public class MTMathUILabel : MTView {
`UIEdgeInsetsZero` by default. This is useful if you need some padding between the math and `UIEdgeInsetsZero` by default. This is useful if you need some padding between the math and
the border/background color. sizeThatFits: will have its returned size increased by these insets. the border/background color. sizeThatFits: will have its returned size increased by these insets.
*/ */
@IBInspectable // @IBInspectable
public var contentInsets = MTEdgeInsetsZero { public var contentInsets = MTEdgeInsetsZero {
didSet { didSet {
self.invalidateIntrinsicContentSize() self.invalidateIntrinsicContentSize()