         return textView.textStorage as! AztecTextStorage
     }
 
+    /// TextKit's Text Container
+    ///
+    private var textContainer: NSTextContainer {
+        return textView.textContainer
+    }
+
 
     /// Designaged initializer.
     ///


        attachmentView.view.frame = newFrame
        attachmentView.exclusionPath = newExclusionPath

        // TextKit's Container!
        textView.textContainer.exclusionPaths.append(newExclusionPath)

        // Always ensure layout after updating an individual exclusion path so
        // subsequent attachments are in their proper location.
        layoutManager.ensureLayoutForTextContainer(textView.textContainer)
    }




        layoutManager.ensureLayoutForTextContainer(textView.textContainer)

        // Layout
        enumerateAttachments(ofType: AztecTextAttachment.self) { (attachment, range) in
            self.layoutAttachmentViewForAttachment(attachment, atRange: range)
        }

        // Apply Exclusion Paths
        let newExclusionPath = attachmentViews.values.flatMap { $0.exclusionPath }
        textContainer.exclusionPaths += newExclusionPath
        layoutManager.ensureLayoutForTextContainer(textContainer)
    }
}

