Skip to content

Commit

Permalink
Merge pull request #41 from cyupa/master
Browse files Browse the repository at this point in the history
Change CollectionHeaderFooterAdapter, TableSection and TableHeaderFooterAdapter to open
  • Loading branch information
malcommac authored Nov 24, 2019
2 parents 78fe882 + 42ccfca commit 4f3d94e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
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

0 comments on commit 4f3d94e

Please sign in to comment.