#if os(iOS)
    import UIKit
#else
    import AppKit
#endif

extension ConstraidView {
    /**
        Sets height content hugging and compression resistance priority to 1000
        (required)
    */
    open func keepIntrinsicHeight(priority: ConstraidLayoutPriority = ConstraidLayoutPriorityRequired) {
        self.setContentCompressionResistancePriority(priority, for: .vertical)
        self.setContentHuggingPriority(priority, for: .vertical)
    }

    /**
        Sets width content hugging and compression resistance priority to 1000
        (required)
    */
    open func keepIntrinsicWidth(priority: ConstraidLayoutPriority = ConstraidLayoutPriorityRequired) {
        self.setContentCompressionResistancePriority(priority, for: .horizontal)
        self.setContentHuggingPriority(priority, for: .horizontal)
    }

    /**
        Sets height & width content hugging and compression resistance priority to 1000
        (required)
    */
    open func keepIntrinsicSize(priority: ConstraidLayoutPriority = ConstraidLayoutPriorityRequired) {
        keepIntrinsicHeight(priority: priority)
        keepIntrinsicWidth(priority: priority)
    }
}

#if os(iOS)
    import UIKit
#else
    import AppKit
#endif

extension ConstraidView {
    open func keepIntrinsicHeight(priority: ConstraidLayoutPriority = ConstraidLayoutPriorityRequired) {
        self.setContentCompressionResistancePriority(priority, for: .vertical)
        self.setContentHuggingPriority(priority, for: .vertical)
    }

    open func keepIntrinsicWidth(priority: ConstraidLayoutPriority = ConstraidLayoutPriorityRequired) {
        self.setContentCompressionResistancePriority(priority, for: .horizontal)
        self.setContentHuggingPriority(priority, for: .horizontal)
    }

    open func keepIntrinsicSize(priority: ConstraidLayoutPriority = ConstraidLayoutPriorityRequired) {
        keepIntrinsicHeight(priority: priority)
        keepIntrinsicWidth(priority: priority)
    }
}

--- 
+++ 
@@ -5,16 +5,28 @@
 #endif
 
 extension ConstraidView {
+    /**
+        Sets height content hugging and compression resistance priority to 1000
+        (required)
+    */
     open func keepIntrinsicHeight(priority: ConstraidLayoutPriority = ConstraidLayoutPriorityRequired) {
         self.setContentCompressionResistancePriority(priority, for: .vertical)
         self.setContentHuggingPriority(priority, for: .vertical)
     }
 
+    /**
+        Sets width content hugging and compression resistance priority to 1000
+        (required)
+    */
     open func keepIntrinsicWidth(priority: ConstraidLayoutPriority = ConstraidLayoutPriorityRequired) {
         self.setContentCompressionResistancePriority(priority, for: .horizontal)
         self.setContentHuggingPriority(priority, for: .horizontal)
     }
 
+    /**
+        Sets height & width content hugging and compression resistance priority to 1000
+        (required)
+    */
     open func keepIntrinsicSize(priority: ConstraidLayoutPriority = ConstraidLayoutPriorityRequired) {
         keepIntrinsicHeight(priority: priority)
         keepIntrinsicWidth(priority: priority)
Document Manage Intrinsic Size Relations

Why you made the change:

I did this so that people would understand better what these methods do.
