mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-06-15 10:07:55 +08:00
* clean up title model * update title style * organize issue SC method * remove background colors from styled text in issues * collection view bg white * remove card inset and clean up snap superview code * clean up label design * thread is root and change base font size * remove borders on comment cells * adjust collapse design * adjust comment line spacing and make non-root body smaller * refactor detail view * viewer header background color * more buttons in reaction cell * vertical spacers working * design basically finished; * scroll to bottom accounts for inset * PR review background color white * fixup PR review comments * spacing on merge and review * readme background white * rename to just "spacer" * horizontal spacing * fix tests
28 lines
709 B
Swift
28 lines
709 B
Swift
//
|
|
// SpacerSectionController.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 7/26/18.
|
|
// Copyright © 2018 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import IGListKit
|
|
|
|
final class SpacerSectionController: ListSectionController {
|
|
|
|
override func sizeForItem(at index: Int) -> CGSize {
|
|
return CGSize(
|
|
width: collectionContext?.insetContainerSize.width ?? 0,
|
|
height: Styles.Sizes.tableCellHeight/2)
|
|
}
|
|
|
|
override func cellForItem(at index: Int) -> UICollectionViewCell {
|
|
guard let cell = collectionContext?.dequeueReusableCell(of: SpacerCell.self, for: self, at: index) else {
|
|
fatalError()
|
|
}
|
|
return cell
|
|
}
|
|
|
|
}
|