     }
 
     required public init?(coder aDecoder: NSCoder) {
-
-        defaultFont = UIFont.systemFont(ofSize: 14)
+        let font = UIFont.systemFont(ofSize: 14)
+        if #available(iOS 11.0, *) {
+            self.defaultFont = UIFontMetrics.default.scaledFont(for: font)
+        } else {
+            self.defaultFont = font
+        }
+
         defaultParagraphStyle = ParagraphStyle.default
         defaultMissingImage = Assets.imageIcon
         

    var defaultMissingImage: UIImage
    
    fileprivate var defaultAttributes: [AttributedStringKey: Any] {
        var attributes: [AttributedStringKey: Any] = [.paragraphStyle: defaultParagraphStyle]

        if let textColor = textColor {
            attributes[.foregroundColor] = textColor
        }

        let font: UIFont

        if #available(iOS 11.0, *) {
            font = UIFontMetrics.default.scaledFont(for: defaultFont)
        } else {
            font = defaultFont
        }
        attributes[.font] = font

        return attributes
    }

        defaultFont: UIFont,
        defaultParagraphStyle: ParagraphStyle = ParagraphStyle.default,
        defaultMissingImage: UIImage) {

        if #available(iOS 11.0, *) {
            self.defaultFont = UIFontMetrics.default.scaledFont(for: defaultFont)
        } else {
            self.defaultFont = defaultFont
        }
        self.defaultParagraphStyle = defaultParagraphStyle
        self.defaultMissingImage = defaultMissingImage

