Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CollectionHeaderFooterAdapter, TableSection and TableHeaderFooterAdapter to open #41

Merged
merged 2 commits into from
Nov 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Owl was created and maintaned by [Daniele Margutti](https://github.com/malcommac
The preferred installation method is with CocoaPods. Add the following to your `Podfile`:

```ruby
pod 'OwlKit', '~> 1.0'
pod 'OwlKit'
```

Also you can install Owl using Carthage. Add this to your `Cartfile`:
Expand All @@ -45,6 +45,8 @@ Also you can install Owl using Carthage. Add this to your `Cartfile`:
github "malcommac/Owl"
```

Owl is also compatible with SPM (Swift Package Manager) for Swift 5.x+

## What you will get

This is how to achieve a fully functional Contacts list with Owl. It's just a silly example but you can create complex layout with heterogeneous models easily!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public extension CollectionHeaderFooterAdapterProtocol {

}

public class CollectionHeaderFooterAdapter<View: UICollectionReusableView>: CollectionHeaderFooterAdapterProtocol {
open class CollectionHeaderFooterAdapter<View: UICollectionReusableView>: CollectionHeaderFooterAdapterProtocol {

/// This is the cell type used to dequeue the model. You should not alter it.
public var modelCellType: Any.Type = View.self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public extension TableHeaderFooterAdapterProtocol {

// MARK: - TableHeaderFooterAdapter -

public class TableHeaderFooterAdapter<View: UITableViewHeaderFooterView>: TableHeaderFooterAdapterProtocol {
open class TableHeaderFooterAdapter<View: UITableViewHeaderFooterView>: TableHeaderFooterAdapterProtocol {

// MARK: - Public Properties -

Expand Down
4 changes: 2 additions & 2 deletions Sources/Owl/Table/TableSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import UIKit

public class TableSection: Equatable, Copying, DifferentiableSection {
open class TableSection: Equatable, Copying, DifferentiableSection {

// MARK: - Public Properties -

Expand Down Expand Up @@ -95,7 +95,7 @@ public class TableSection: Equatable, Copying, DifferentiableSection {

// MARK: - Initialization -

required init(original: TableSection) {
required public init(original: TableSection) {
self.allElements = original.allElements
self.identifier = original.identifier
self.headerTitle = original.headerTitle
Expand Down