Skip to content

Commit 3acea16

Browse files
authored
Merge pull request #9 from ahmedAlmasri/develop
add header cell
2 parents 9998c27 + 2fa8a90 commit 3acea16

File tree

4 files changed

+31
-22
lines changed

4 files changed

+31
-22
lines changed

Example/SNAdapter.xcodeproj/project.pbxproj

+10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
0483F4FF22A0743B00F2E90B /* BasicCollectionController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0483F4FE22A0743B00F2E90B /* BasicCollectionController.swift */; };
1919
0483F50722A0832F00F2E90B /* HeaderCollectionController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0483F50622A0832F00F2E90B /* HeaderCollectionController.swift */; };
2020
0483F50922A0837A00F2E90B /* BasicCollectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0483F50822A0837A00F2E90B /* BasicCollectionCell.swift */; };
21+
0483F50B22A08DD300F2E90B /* HeaderCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0483F50A22A08DD300F2E90B /* HeaderCell.swift */; };
2122
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
2223
607FACD81AFB9204008FA782 /* BasicController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* BasicController.swift */; };
2324
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; };
@@ -50,6 +51,7 @@
5051
0483F4FE22A0743B00F2E90B /* BasicCollectionController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BasicCollectionController.swift; sourceTree = "<group>"; };
5152
0483F50622A0832F00F2E90B /* HeaderCollectionController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HeaderCollectionController.swift; sourceTree = "<group>"; };
5253
0483F50822A0837A00F2E90B /* BasicCollectionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BasicCollectionCell.swift; sourceTree = "<group>"; };
54+
0483F50A22A08DD300F2E90B /* HeaderCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HeaderCell.swift; sourceTree = "<group>"; };
5355
4AEF288FCBD84CDDEDCB61F0 /* Pods-SNAdapter_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SNAdapter_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SNAdapter_Example/Pods-SNAdapter_Example.release.xcconfig"; sourceTree = "<group>"; };
5456
4C2373ECF90057050B089B01 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
5557
607FACD01AFB9204008FA782 /* SNAdapter_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SNAdapter_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -181,6 +183,7 @@
181183
isa = PBXGroup;
182184
children = (
183185
0483F50622A0832F00F2E90B /* HeaderCollectionController.swift */,
186+
0483F50A22A08DD300F2E90B /* HeaderCell.swift */,
184187
);
185188
path = Header;
186189
sourceTree = "<group>";
@@ -309,10 +312,12 @@
309312
TargetAttributes = {
310313
607FACCF1AFB9204008FA782 = {
311314
CreatedOnToolsVersion = 6.3.1;
315+
DevelopmentTeam = 32M9XG9335;
312316
LastSwiftMigration = 0900;
313317
};
314318
607FACE41AFB9204008FA782 = {
315319
CreatedOnToolsVersion = 6.3.1;
320+
DevelopmentTeam = 32M9XG9335;
316321
LastSwiftMigration = 0900;
317322
TestTargetID = 607FACCF1AFB9204008FA782;
318323
};
@@ -438,6 +443,7 @@
438443
0483F4E52299807600F2E90B /* SectionController.swift in Sources */,
439444
0483F4E22298BD7A00F2E90B /* BasicCell.swift in Sources */,
440445
0483F4F12299DCFD00F2E90B /* ActionDelegateCell.swift in Sources */,
446+
0483F50B22A08DD300F2E90B /* HeaderCell.swift in Sources */,
441447
0483F4EA2299BD7100F2E90B /* SectionHeaderCell.swift in Sources */,
442448
0483F4EC2299BDC500F2E90B /* PagingController.swift in Sources */,
443449
0483F4EF2299DC3A00F2E90B /* ActionDelegateController.swift in Sources */,
@@ -590,6 +596,7 @@
590596
baseConfigurationReference = 920EC0B6594518B5A287F4B2 /* Pods-SNAdapter_Example.debug.xcconfig */;
591597
buildSettings = {
592598
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
599+
DEVELOPMENT_TEAM = 32M9XG9335;
593600
INFOPLIST_FILE = SNAdapter/Info.plist;
594601
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
595602
MODULE_NAME = ExampleApp;
@@ -605,6 +612,7 @@
605612
baseConfigurationReference = 4AEF288FCBD84CDDEDCB61F0 /* Pods-SNAdapter_Example.release.xcconfig */;
606613
buildSettings = {
607614
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
615+
DEVELOPMENT_TEAM = 32M9XG9335;
608616
INFOPLIST_FILE = SNAdapter/Info.plist;
609617
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
610618
MODULE_NAME = ExampleApp;
@@ -619,6 +627,7 @@
619627
isa = XCBuildConfiguration;
620628
baseConfigurationReference = D86FFCC1384DD94098027C2C /* Pods-SNAdapter_Tests.debug.xcconfig */;
621629
buildSettings = {
630+
DEVELOPMENT_TEAM = 32M9XG9335;
622631
FRAMEWORK_SEARCH_PATHS = (
623632
"$(SDKROOT)/Developer/Library/Frameworks",
624633
"$(inherited)",
@@ -641,6 +650,7 @@
641650
isa = XCBuildConfiguration;
642651
baseConfigurationReference = 623061151B9501D3AED32086 /* Pods-SNAdapter_Tests.release.xcconfig */;
643652
buildSettings = {
653+
DEVELOPMENT_TEAM = 32M9XG9335;
644654
FRAMEWORK_SEARCH_PATHS = (
645655
"$(SDKROOT)/Developer/Library/Frameworks",
646656
"$(inherited)",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// HeaderCell.swift
3+
// SNAdapter_Example
4+
//
5+
// Created by Macbook Pro on 5/31/19.
6+
// Copyright © 2019 CocoaPods. All rights reserved.
7+
//
8+
9+
import Foundation
10+
import SNAdapter
11+
12+
class HeaderCell: UICollectionReusableView, SNCellable {
13+
func configure(_ object: SNCellableModel?) {
14+
}
15+
16+
}

Example/SNAdapter/CollectionView/Header/HeaderCollectionController.swift

-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ import Foundation
1010
import UIKit
1111
import SNAdapter
1212

13-
class HeaderCell: UICollectionReusableView, SNCellable {
14-
func configure(_ object: SNCellableModel?) {
15-
}
16-
17-
}
18-
1913
class HeaderCollectionController: UIViewController {
2014

2115
@IBOutlet weak var headerCollectionView: UICollectionView!

SNAdapter.podspec

+5-16
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,18 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'SNAdapter'
11-
s.version = '0.1.0'
12-
s.summary = 'A short description of SNAdapter.'
11+
s.version = '0.0.1'
12+
s.swift_version = '4.2'
13+
s.summary = 'iOS swift tableview and collectionView Adapter, powered by generics and associated types.'
1314

14-
# This description is used to generate tags and improve search results.
15-
# * Think: What does it do? Why did you write it? What is the focus?
16-
# * Try to keep it short, snappy and to the point.
17-
# * Write the description between the DESC delimiters below.
18-
# * Finally, don't worry about the indent, CocoaPods strips it!
19-
20-
s.description = <<-DESC
21-
TODO: Add long description of the pod here.
22-
DESC
2315

2416
s.homepage = 'https://github.com/ahmedAlmasri/SNAdapter'
2517
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
2618
s.license = { :type => 'MIT', :file => 'LICENSE' }
2719
s.author = { 'ahmedAlmasri' => '[email protected]' }
28-
s.source = { :git => 'https://github.com/ahmedAlmasri/SNAdapter.git', :tag => s.version.to_s }
29-
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
20+
s.source = { :git => 'https://github.com/ahmedAlmasri/SNAdapter.git', :tag => '0.0.1_beta' }
3021

31-
s.ios.deployment_target = '8.0'
22+
s.ios.deployment_target = '10.0'
3223

3324
s.source_files = 'SNAdapter/Classes/**/*'
3425

@@ -37,6 +28,4 @@ TODO: Add long description of the pod here.
3728
# }
3829

3930
# s.public_header_files = 'Pod/Classes/**/*.h'
40-
# s.frameworks = 'UIKit', 'MapKit'
41-
# s.dependency 'AFNetworking', '~> 2.3'
4231
end

0 commit comments

Comments
 (0)