 extension View
 {
     // All of the below methods of this extension are used to Apply\Add constraint in receiver view (self ).
-
+    
     /// Sets the aspect ratio of a view.
     public final func applyAspectRatioConstraint() {
         self +== (.aspectRatio, 0)
     }
-
+    
     /**
      Sets the width of a view.
      - Parameter width: A CGFloat value.

{
    // All the below methods of this category are used to applied\add constraints in supreview of receiver view (self)
    /**
     A receiver view is aligned from the left with padding.
     - Parameter padding: A CGFloat value to the left side padding.
     */
    public final func applyLeftPinConstraintToSuperview(_ padding: CGFloat) {
        (self +== .left).constant = padding
    }
    
    /**
     A receiver view is aligned from the right with padding.
     - Parameter padding: A CGFloat value to the right side padding.
     */
    public final func applyRightPinConstraintToSuperview(_ padding: CGFloat) {
        (self +== .right).constant = padding
    }
    
    /**
     A receiver view is aligned from the top with padding.
     - Parameter padding: A CGFloat value to the top side padding.
     */
    public final func applyTopPinConstraintToSuperview(_ padding: CGFloat) {
        (self +== .top).constant = padding
    }

    /**
     A receiver view is aligned from the bottom with padding.
     - Parameter padding: A CGFloat value to the bottom side padding.
     */
    public final func applyBottomPinConstraintToSuperview(_ padding: CGFloat) {
        (self +== .bottom).constant = padding
    }
    
    #if os(iOS) || os(tvOS)
    /**
     A receiver view is aligned from the left with padding.
     - Parameter padding: A CGFloat value to the left side padding.
     */
    public final func applyLeadingPinConstraintToSuperview(_ padding: CGFloat) {
        (self +== .leading).constant = padding
    }

    /**
     A receiver view is aligned from the right with padding.
     - Parameter padding: A CGFloat value to the right side padding.
     */
    public final func applyTrailingPinConstraintToSuperview(_ padding: CGFloat) {
        (self +== .trailing).constant = padding
    }
    
    #endif

    /**
     To horizontally Center a receiver view in it's superview with an optional offset value.
     - Parameter offset: A CGFloat value for the offset along the x axis.
     */
    public final func applyCenterXPinConstraintToSuperview(_ offset: CGFloat) {
        (self +== .centerX).constant = offset
    }
    
    /// To Vertically Center In Superview
    /**
     To vertically Center a receiver view in it's superview with an optional offset value.
     - Parameter offset: A CGFloat value for the offset along the y axis.
     */
    public final func applyCenterYPinConstraintToSuperview(_ offset: CGFloat) {
        (self +== .centerY).constant = offset
    }
    
}

        (self +== .centerX).constant = offset.x
        (self +== .centerY).constant = offset.y
    }
    
}

extension View
