Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to give space between two section #43

Open
vnanaware opened this issue May 9, 2019 · 2 comments
Open

How to give space between two section #43

vnanaware opened this issue May 9, 2019 · 2 comments

Comments

@vnanaware
Copy link

facing issue to give space between sections please help.

@Mvdl
Copy link

Mvdl commented May 18, 2019

You can use footer views between your section and give them the desired height.

@azeemohd786
Copy link

azeemohd786 commented Feb 22, 2021

override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
       return 1.0
   }
   override func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
       // UIView with background for section-separators as Section Footer
       let v = UIView(frame: CGRect(x: 0, y:0, width: tableView.frame.width, height: 1))
       v.backgroundColor = .lightGray
       return v
   }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants