How to customize sendbird UIKIt mesage input view?

erminating app due to uncaught exception ‘NSGenericException’, reason: ‘Unable to activate constraint with anchors <NSLayoutXAxisAnchor:0x6000002fb540 “SendbirdUIKit.SBUStackView:0x127d495c0.leading”> and <NSLayoutXAxisAnchor:0x6000002fb340 “SendBird_App.CustomMessageInputView:0x127d482c0.leading”> because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That’s illegal.’
terminating with uncaught exception of type NSException
CoreSimulator 885.2 - Device: iPhone 14

Getting this error if I try to customize message input view in swift for sendbird UIKit