-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/5.0.0' into main
- Loading branch information
Showing
30 changed files
with
1,037 additions
and
596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# format options | ||
--binarygrouping none | ||
--closingparen balanced | ||
--commas inline | ||
--conflictmarkers reject | ||
|
||
--decimalgrouping none | ||
--octalgrouping none | ||
--hexgrouping none | ||
|
||
--elseposition next-line | ||
--guardelse same-line | ||
|
||
--empty void | ||
--exponentcase lowercase | ||
--exponentgrouping disabled | ||
--fractiongrouping disabled | ||
--fragment false | ||
--header ignore | ||
--hexliteralcase uppercase | ||
--ifdef indent | ||
--importgrouping alphabetized | ||
--indent 4 | ||
--linebreaks lf | ||
|
||
--patternlet hoist | ||
--nospaceoperators | ||
--self remove | ||
--selfrequired | ||
--stripunusedargs closure-only | ||
--trailingclosures | ||
--trimwhitespace always | ||
--wraparguments before-first | ||
--wrapcollections before-first | ||
--xcodeindentation enabled | ||
--disable redundantReturn, wrapMultilineStatementBraces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// ColorHeaderView.swift | ||
// TableViewContent_Example | ||
// | ||
// Created by Akira Matsuda on 2020/11/25. | ||
// Copyright © 2020 CocoaPods. All rights reserved. | ||
// | ||
|
||
import TableViewContent | ||
import UIKit | ||
|
||
class ColorHeaderView: UIView, SectionConfigurable { | ||
init(height: CGFloat) { | ||
super.init(frame: .zero) | ||
NSLayoutConstraint.activate([ | ||
heightAnchor.constraint(equalToConstant: height) | ||
]) | ||
} | ||
|
||
@available(*, unavailable) | ||
required init?(coder _: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
func configure(_ data: Any) { | ||
guard let color = data as? UIColor else { | ||
return | ||
} | ||
backgroundColor = color | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.