RNFrostedSidebar icon indicating copy to clipboard operation
RNFrostedSidebar copied to clipboard

Customize the spacing of the images in sidebar

Open treylin opened this issue 10 years ago • 1 comments

How can I customize the spacing of the images in sidebar? I use your control in my project, it's awesome. But I just got four images in sidebar, then I found that there were a space at the bottom of the sidebar.

treylin avatar Apr 10 '14 10:04 treylin

In RNFrostedSidebar.m find the function:

  • (void) layoutItems

As the second line you will hopefully find: CGFloat topPadding = leftPadding;

Change this value to whatever you want.

SpenDM avatar Jul 20 '14 18:07 SpenDM