rnystrom / RNFrostedSidebar

A Control Center-esque control with blurred background and toggle animations.
MIT License
2.13k stars 340 forks source link

Customize the spacing of the images in sidebar #30

Open treylin opened 10 years ago

treylin commented 10 years ago

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.

SpenDM commented 10 years ago

In RNFrostedSidebar.m find the function:

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

Change this value to whatever you want.