-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from Babylonpartners/release/0.4.0
Release 0.4.0 (master)
- Loading branch information
Showing
447 changed files
with
4,153 additions
and
3,132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
Pod::Spec.new do |s| | ||
|
||
s.name = "Bento" | ||
s.version = "0.3" | ||
s.summary = "Component based abstraction on top of UITableView and UICollectionView" | ||
s.name = "Bento" | ||
s.version = "0.4" | ||
s.summary = "Component based abstraction on top of UITableView and UICollectionView" | ||
|
||
s.description = <<-DESC | ||
Component-based abstraction on top of UITableView and UICollectionView. | ||
Provides a declarative way to render data in UITableView and UICollectionView | ||
DESC | ||
s.description = <<-DESC | ||
Component-based abstraction on top of UITableView and UICollectionView. | ||
Provides a declarative way to render data in UITableView and UICollectionView | ||
DESC | ||
|
||
s.homepage = "https://github.com/Babylonpartners/Bento" | ||
s.license = { :type => "MIT", :file => "LICENSE" } | ||
s.author = { "Babylon iOS" => "[email protected]" } | ||
s.ios.deployment_target = '9.0' | ||
s.source = { :git => "https://github.com/Babylonpartners/Bento.git", :tag => "#{s.version}" } | ||
s.source_files = 'Bento/*.swift', 'Bento/**/*.swift' | ||
s.homepage = "https://github.com/Babylonpartners/Bento" | ||
s.license = { :type => "MIT", :file => "LICENSE" } | ||
s.author = { "Babylon iOS" => "[email protected]" } | ||
s.ios.deployment_target = '10.0' | ||
s.source = { :git => "https://github.com/Babylonpartners/Bento.git", :tag => "#{s.version}" } | ||
s.source_files = 'Bento/*.swift', 'Bento/**/*.swift', 'Common/*.swift' | ||
s.resource_bundles = { 'Bento' => 'Bento/Resources/Media.xcassets' } | ||
s.exclude_files = 'Bento/Components.playground/**/*' | ||
s.swift_version = "4.2" | ||
|
||
s.swift_version = "4.2" | ||
s.dependency "FlexibleDiff", "= 0.0.7" | ||
s.dependency "FlexibleDiff", "= 0.0.8" | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,31 @@ | ||
/// Provide generic parameter agnostic access to the adapter. | ||
internal protocol AdapterStoreAccessible: AnyObject { | ||
var layoutMargins: UIEdgeInsets { get set } | ||
var boundSize: CGSize { get set } | ||
var cachesSizeInformation: Bool { get set } | ||
} | ||
|
||
/// Provide a default implementation for all adapter store owners. | ||
internal protocol AdapterStoreOwner: AdapterStoreAccessible { | ||
associatedtype SectionID: Hashable | ||
associatedtype ItemID: Hashable | ||
|
||
var store: AdapterStore<SectionID, ItemID> { get set } | ||
} | ||
|
||
extension AdapterStoreOwner { | ||
var layoutMargins: UIEdgeInsets { | ||
get { return store.layoutMargins } | ||
set { store.layoutMargins = newValue } | ||
} | ||
|
||
var boundSize: CGSize { | ||
get { return store.boundSize } | ||
set { store.boundSize = newValue } | ||
} | ||
|
||
var cachesSizeInformation: Bool { | ||
get { return store.cachesSizeInformation } | ||
set { store.cachesSizeInformation = newValue } | ||
} | ||
} |
Oops, something went wrong.