Using emoji from keyboard

I am trying to use emoji from keyboard without coding any strings or images as I read it would still work. But I am getting this error. Anyone know an alternative way to use the keyboard emojis?

2022-09-09 The behavior of the UICollectionViewFlowLayout is not defined because:

2022-09-09 the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.

2022-09-09 The relevant UICollectionViewFlowLayout instance is <_InvertibleFlowLayout: 0x12eeb8900>, and it is attached to <UICollectionView: 0x13011f000; frame = (0 0; 428 4); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x600003086bb0>; layer = <CALayer: 0x600003efa000>; contentOffset: {0, 0}; contentSize: {-153, 4}; adjustedContentInset: {0, 0, 0, 0}; layout: <_InvertibleFlowLayout: 0x12eeb8900>; dataSource: <__UIDiffableDataSource 0x600000173750: sectionCounts = [_UIDataSourceSnapshotter - 0x600003ebd360:(0:14)]; sections = [0x600003ebd400]; identifiers=[0x600003ebc660]>>.

2022-09-09 Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.

Using emoji from keyboard
 
 
Q