When the keyboard opens you loose the configured cardsViewContentInsetTop in theme, the bug is in the next line:
|
let newContentInsets = UIEdgeInsets.init(top: 0, left: 0, bottom: scrollViewKeyboardIntersection.size.height, right: 0) |
Consider adding the theme value to the top parameter of the call.