Skip to content

Commit

Permalink
Merge branch 'release/1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackjacx committed Aug 9, 2019
2 parents 564925e + c301ce2 commit 5bdd35c
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [Unreleased]

## [1.0.3] - 2019-08-09
* Implement possibility to hide last N separators - [@Blackjacx](https://github.com/blackjacx).

## [1.0.2] - 2019-08-07
* Rename invalidViewModel > invalidModel - [@Blackjacx](https://github.com/blackjacx).

Expand Down
2 changes: 1 addition & 1 deletion Source.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Source'
s.version = '1.0.2'
s.version = '1.0.3'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'The generic data source implementation for all your view controllers.'
s.description = <<-DESC
Expand Down
8 changes: 4 additions & 4 deletions Source.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,12 @@
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 5;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 4;
DYLIB_CURRENT_VERSION = 5;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = Source/Info.plist;
Expand Down Expand Up @@ -368,11 +368,11 @@
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 5;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 4;
DYLIB_CURRENT_VERSION = 5;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = Source/Info.plist;
Expand Down
3 changes: 3 additions & 0 deletions Source/Classes/Configurable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

import Foundation

/// Provide a configure with `ViewModel` function.
/// - note: This protocol must be a class-based protocol because
/// `tableView.register` requires `AnyClass`.
public protocol Configurable: class {
func configure(with model: ViewModel?) throws
}
1 change: 1 addition & 0 deletions Source/Classes/Reusable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation

/// Reusable protocol to seamlessly provide a cellid.
public protocol Reusable {
static var reuseIdentifier: String {get}
}
Expand Down
9 changes: 9 additions & 0 deletions Source/Classes/Source.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ public final class Source: NSObject {

public var dataSourceDidChangedClosure: DataSourceDidChangedClosure?

public let numberOfLastSeparatorsToHide: Int

// MARK: - Lifecycle

public init(numberOfLastSeparatorsToHide: Int = 1) {

self.numberOfLastSeparatorsToHide = numberOfLastSeparatorsToHide
}

public func registerCells(for table: UITableView) {
collection.allModels.forEach {
table.register($0.cellType, forCellReuseIdentifier: $0.cellType.reuseIdentifier)
Expand Down
4 changes: 2 additions & 2 deletions Source/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0.2</string>
<string>1.0.3</string>
<key>CFBundleVersion</key>
<string>4</string>
<string>5</string>
</dict>
</plist>

0 comments on commit 5bdd35c

Please sign in to comment.