-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Begin Implementing 2.0.0, Fixing issue related to header size * Update Example to use UIScreen.main.bounds.width to calculate image height * Update Unit tests for OKTableViewSection * Add Estimated Height for OKTableViewSectionComponent * Update Unit test for test_reloadSection_reloadsSectionOfTableView() * Update function declaration for setting heights for OKTableViewRow, update unit tests * Update ReadMe to reflect 2.0.0 changes * Update README for grammatical error
- Loading branch information
1 parent
ae3ccf7
commit f8b53a5
Showing
39 changed files
with
1,341 additions
and
1,153 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
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
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
30 changes: 30 additions & 0 deletions
30
Example/OKTableViewLiaison/PostTableViewSectionHeaderViewComponent.swift
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,30 @@ | ||
// | ||
// PostTableViewSectionHeaderViewComponent.swift | ||
// OKTableViewLiaison_Example | ||
// | ||
// Created by Dylan Shine on 5/30/18. | ||
// Copyright © 2018 CocoaPods. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import OKTableViewLiaison | ||
|
||
final class PostTableViewSectionHeaderViewComponent: OKTableViewSectionComponent<PostTableViewSectionHeaderView, User> { | ||
|
||
public init(user: User) { | ||
|
||
super.init(user, registrationType: PostTableViewSectionHeaderViewComponent.defaultNibRegistrationType) | ||
|
||
set(height: .height, 70) | ||
|
||
set(command: .configuration) { view, user, section in | ||
view.imageView.image = user.avatar | ||
view.imageView.layer.borderColor = UIColor.gray.cgColor | ||
view.imageView.layer.borderWidth = 1 | ||
|
||
view.titleLabel.text = user.username | ||
view.titleLabel.font = .systemFont(ofSize: 13, weight: .medium) | ||
view.titleLabel.textColor = .black | ||
} | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.