diff --git a/Tusker/Screens/Account Follows/AccountFollowsListViewController.swift b/Tusker/Screens/Account Follows/AccountFollowsListViewController.swift index 04fc9300..32d95c26 100644 --- a/Tusker/Screens/Account Follows/AccountFollowsListViewController.swift +++ b/Tusker/Screens/Account Follows/AccountFollowsListViewController.swift @@ -52,6 +52,12 @@ class AccountFollowsListViewController: UIViewController, CollectionViewControll config.topSeparatorVisibility = .hidden config.bottomSeparatorVisibility = .hidden } + if config.topSeparatorInsets != .zero { + config.topSeparatorInsets = TimelineStatusCollectionViewCell.separatorInsets + } + if config.bottomSeparatorInsets != .zero { + config.bottomSeparatorInsets = TimelineStatusCollectionViewCell.separatorInsets + } return config } let layout = UICollectionViewCompositionalLayout { sectionIndex, environment in diff --git a/Tusker/Screens/Account List/AccountListViewController.swift b/Tusker/Screens/Account List/AccountListViewController.swift index 6135755e..c598abac 100644 --- a/Tusker/Screens/Account List/AccountListViewController.swift +++ b/Tusker/Screens/Account List/AccountListViewController.swift @@ -33,6 +33,8 @@ class AccountListViewController: UIViewController, CollectionViewController { override func loadView() { var config = UICollectionLayoutListConfiguration(appearance: .grouped) config.backgroundColor = .appGroupedBackground + config.separatorConfiguration.topSeparatorInsets = TimelineStatusCollectionViewCell.separatorInsets + config.separatorConfiguration.bottomSeparatorInsets = TimelineStatusCollectionViewCell.separatorInsets let layout = UICollectionViewCompositionalLayout { sectionIndex, environment in let section = NSCollectionLayoutSection.list(using: config, layoutEnvironment: environment) section.readableContentInset(in: environment)