Skip to content

Commit

Permalink
Update public accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
rechsteiner committed Dec 8, 2016
1 parent 8443fba commit 1f057a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Parchment/Classes/PagingTitleCell.swift
Expand Up @@ -28,12 +28,12 @@ open class PagingTitleCell: PagingCell {
configureTitleLabel()
}

fileprivate func configure() {
open func configure() {
contentView.addSubview(titleLabel)
contentView.constrainToEdges(titleLabel)
}

fileprivate func configureTitleLabel() {
open func configureTitleLabel() {
guard let viewModel = viewModel else { return }
titleLabel.text = viewModel.title
titleLabel.font = viewModel.font
Expand Down
16 changes: 8 additions & 8 deletions Parchment/Classes/PagingView.swift
@@ -1,12 +1,12 @@
import UIKit

class PagingView: UIView {
open class PagingView: UIView {

fileprivate let pageView: UIView
fileprivate let collectionView: UICollectionView
fileprivate let options: PagingOptions
open let pageView: UIView
open let collectionView: UICollectionView
open let options: PagingOptions

init(pageView: UIView, collectionView: UICollectionView, options: PagingOptions) {
public init(pageView: UIView, collectionView: UICollectionView, options: PagingOptions) {

self.pageView = pageView
self.collectionView = collectionView
Expand All @@ -17,17 +17,17 @@ class PagingView: UIView {
configure()
}

required init?(coder: NSCoder) {
required public init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

fileprivate func configure() {
open func configure() {
addSubview(collectionView)
addSubview(pageView)
setupConstraints()
}

fileprivate func setupConstraints() {
open func setupConstraints() {
collectionView.translatesAutoresizingMaskIntoConstraints = false
pageView.translatesAutoresizingMaskIntoConstraints = false

Expand Down

0 comments on commit 1f057a9

Please sign in to comment.