-
Notifications
You must be signed in to change notification settings - Fork 4
/
FancySources.podspec
50 lines (40 loc) · 1.67 KB
/
FancySources.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# Be sure to run `pod spec lint FancySources.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |s|
s.name = "FancySources"
s.version = "1.0.1"
s.summary = "Flexible, generic and abstracted from UIKit data sources."
s.description = "FancySources
Flexible, generic and abstracted from UIKit data sources
Usage example
typealias DataSourceType = CollectionViewDataSource
func didLoadEntities(entities: [SomeEntities]) {
let dataSource = DataSourceType(items: entities)
fill(with: dataSource)
}
func fill(with dataSource: DataSourceType) {
dataSource.cellDescriptorCreator = {
[weak self] item, index in
return CellDescriptor(nibName: String(describing: SomeGameCell.self), configure: {
(cell: SomeGameCell) in
cell.fill(with: item)
cell.delegate = self
})
}
collectionView.dataSource = dataSource
collectionView.reloadData()
}"
s.homepage = "https://github.com/Aranoledur/FancySources"
s.license = { :type => 'MIT', :file => "LICENSE" }
s.author = { "Nikolay Ischuk" => "[email protected]" }
s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/Aranoledur/FancySources.git", :tag => "v#{s.version}" }
s.source_files = "FancySources", "FancySources/**/*.{h,m,swift}"
s.exclude_files = "FancySources/Exclude"
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4' }
end