Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
25f454d
When Search bar is presented, the Done button should not invoke deleg…
sugampandey1 Jul 7, 2017
3ff0274
Merge pull request #1 from sugampandey/DOC-1918
sugampandey Jul 7, 2017
abb4659
Added: Select All Contacts/Decelect button, Send Invites Button, cust…
SergeiKu Jul 13, 2017
61005c7
Added Resources folder
SergeiKu Jul 14, 2017
e85115c
changes in pod spec
SergeiKu Jul 14, 2017
222d7cb
восстановил pod spec
SergeiKu Jul 14, 2017
8641db6
Add files via upload
SergeiKu Jul 14, 2017
fd60e63
Update EPContactsPicker.podspec
SergeiKu Jul 14, 2017
4db97a7
added folder name in images path
SergeiKu Jul 14, 2017
bf446b6
added new function to get images from pod bundle
SergeiKu Jul 14, 2017
148599a
fixed error in getImage function.
SergeiKu Jul 14, 2017
47b4ca3
Some necessary improvements: getImage function renamed into getCheckM…
SergeiKu Jul 14, 2017
402996a
Fixed issue when some contacts with emails were shown without it in t…
SergeiKu Jul 14, 2017
3ab85a0
fixed bug: if tap on “Search” and then cancel out of search the Picke…
SergeiKu Jul 14, 2017
bddc9fe
Improved Search. Now if contacts filtered by email, the search perfor…
SergeiKu Jul 15, 2017
fa7c528
Added: hides navigation bar when search bar is activated, and shows i…
SergeiKu Jul 16, 2017
9f8202b
small improvements
SergeiKu Jul 16, 2017
6d1496d
Changes in podspec file
SergeiKu Jul 17, 2017
606e19e
changes: now when search is activated the table shows contacts from a…
SergeiKu Jul 18, 2017
77e172c
Merge pull request #5 from SergeiKu/SVK-160717
sugampandey Jul 18, 2017
39fa398
Update podspec file
sugampandey1 Jul 18, 2017
dea48f2
fixed: double listing of the same contacts after search has been canc…
SergeiKu Jul 18, 2017
05c168e
corrected pod spec file
SergeiKu Jul 18, 2017
fcd76c5
changes in podspec
SergeiKu Jul 18, 2017
8aa00ec
[DOC-2093] Resolve conflicts
sugampandey1 Jul 18, 2017
b89a61e
Merge branch 'SergeiKu-SVK-160717' into DOC-2093
sugampandey1 Jul 18, 2017
46ef269
Update to 2.0.4 pod
sugampandey1 Jul 18, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion Contacts Picker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
objects = {

/* Begin PBXBuildFile section */
A54DCE411F18BD2A00320D5C /* CircularSelected_icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A54DCE3D1F18BD2A00320D5C /* CircularSelected_icon@2x.png */; };
A54DCE421F18BD2A00320D5C /* CircularSelected_icon@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = A54DCE3E1F18BD2A00320D5C /* CircularSelected_icon@3x.png */; };
A54DCE431F18BD2A00320D5C /* CircularUnselected_icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A54DCE3F1F18BD2A00320D5C /* CircularUnselected_icon@2x.png */; };
A54DCE441F18BD2A00320D5C /* CircularUnselected_icon@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = A54DCE401F18BD2A00320D5C /* CircularUnselected_icon@3x.png */; };
E210822E1D916C6F002CCAD5 /* EPContactsPicker.podspec in Resources */ = {isa = PBXBuildFile; fileRef = E210822D1D916C6F002CCAD5 /* EPContactsPicker.podspec */; };
F4C1C9421BDF8AB7001AA643 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4C1C9411BDF8AB7001AA643 /* AppDelegate.swift */; };
F4C1C9491BDF8AB7001AA643 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F4C1C9481BDF8AB7001AA643 /* Assets.xcassets */; };
Expand All @@ -23,6 +27,10 @@

/* Begin PBXFileReference section */
4B7552C01CD28ADA00C638F1 /* .travis.yml */ = {isa = PBXFileReference; lastKnownFileType = text; path = .travis.yml; sourceTree = "<group>"; };
A54DCE3D1F18BD2A00320D5C /* CircularSelected_icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "CircularSelected_icon@2x.png"; sourceTree = "<group>"; };
A54DCE3E1F18BD2A00320D5C /* CircularSelected_icon@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "CircularSelected_icon@3x.png"; sourceTree = "<group>"; };
A54DCE3F1F18BD2A00320D5C /* CircularUnselected_icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "CircularUnselected_icon@2x.png"; sourceTree = "<group>"; };
A54DCE401F18BD2A00320D5C /* CircularUnselected_icon@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "CircularUnselected_icon@3x.png"; sourceTree = "<group>"; };
E210822D1D916C6F002CCAD5 /* EPContactsPicker.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = EPContactsPicker.podspec; sourceTree = "<group>"; };
F4C1C93E1BDF8AB7001AA643 /* Contacts Picker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Contacts Picker.app"; sourceTree = BUILT_PRODUCTS_DIR; };
F4C1C9411BDF8AB7001AA643 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -50,6 +58,17 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
A54DCE3C1F18BC6E00320D5C /* Resources */ = {
isa = PBXGroup;
children = (
A54DCE3D1F18BD2A00320D5C /* CircularSelected_icon@2x.png */,
A54DCE3E1F18BD2A00320D5C /* CircularSelected_icon@3x.png */,
A54DCE3F1F18BD2A00320D5C /* CircularUnselected_icon@2x.png */,
A54DCE401F18BD2A00320D5C /* CircularUnselected_icon@3x.png */,
);
name = Resources;
sourceTree = "<group>";
};
F4C1C9351BDF8AB7001AA643 = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -91,6 +110,7 @@
F4C1C9791BDF9227001AA643 /* EPContactCell.xib */,
F4C1C97A1BDF9227001AA643 /* EPContactsPicker.swift */,
F4C1C97B1BDF9227001AA643 /* EPExtensions.swift */,
A54DCE3C1F18BC6E00320D5C /* Resources */,
);
name = EPContactsPicker;
path = Pods;
Expand Down Expand Up @@ -127,8 +147,9 @@
TargetAttributes = {
F4C1C93D1BDF8AB7001AA643 = {
CreatedOnToolsVersion = 7.0;
DevelopmentTeam = CHZJAHSJ6N;
LastSwiftMigration = 0800;
ProvisioningStyle = Manual;
ProvisioningStyle = Automatic;
};
};
};
Expand Down Expand Up @@ -158,7 +179,11 @@
F4C1C94C1BDF8AB7001AA643 /* LaunchScreen.storyboard in Resources */,
F4C1C9491BDF8AB7001AA643 /* Assets.xcassets in Resources */,
F4C1C9741BDF8BE3001AA643 /* Main.storyboard in Resources */,
A54DCE411F18BD2A00320D5C /* CircularSelected_icon@2x.png in Resources */,
A54DCE431F18BD2A00320D5C /* CircularUnselected_icon@2x.png in Resources */,
F4C1C97F1BDF9227001AA643 /* EPContactCell.xib in Resources */,
A54DCE441F18BD2A00320D5C /* CircularUnselected_icon@3x.png in Resources */,
A54DCE421F18BD2A00320D5C /* CircularSelected_icon@3x.png in Resources */,
E210822E1D916C6F002CCAD5 /* EPContactsPicker.podspec in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -294,11 +319,14 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "Contacts Picker/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.prabaharan.eppicker.Contacts-Picker";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 3.0;
};
name = Debug;
Expand All @@ -307,11 +335,14 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "Contacts Picker/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.prabaharan.eppicker.Contacts-Picker";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 3.0;
};
name = Release;
Expand Down
25 changes: 25 additions & 0 deletions Contacts Picker/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
Expand Down Expand Up @@ -30,6 +40,16 @@
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
Expand Down Expand Up @@ -59,6 +79,11 @@
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
}
],
"info" : {
Expand Down
6 changes: 6 additions & 0 deletions Contacts Picker/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
63 changes: 46 additions & 17 deletions Contacts Picker/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8191" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
Expand All @@ -13,24 +17,49 @@
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fDl-Mm-UYe">
<rect key="frame" x="209" y="281" width="182" height="39"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<state key="normal" title="Show me contacts">
<color key="titleColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="onTouchShowMeContactsButton:" destination="BYZ-38-t0r" eventType="touchUpInside" id="2nt-eD-0CN"/>
</connections>
</button>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="fLh-BV-xjz">
<rect key="frame" x="62" y="275" width="250" height="117"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fDl-Mm-UYe">
<rect key="frame" x="5" y="0.0" width="240" height="39"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<state key="normal" title="Show me email contacts">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="onTouchShowMeEmailContactsButton:" destination="BYZ-38-t0r" eventType="touchUpInside" id="B5W-C4-pCn"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="qii-NL-tig">
<rect key="frame" x="0.0" y="39" width="250" height="39"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<state key="normal" title="Show me phone contacts">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="onTouchShowMePhoneContactsButton:" destination="BYZ-38-t0r" eventType="touchUpInside" id="3Jb-bo-wwa"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7D8-IQ-TvA">
<rect key="frame" x="20" y="78" width="210" height="39"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<state key="normal" title="Show me all contacts">
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="onTouchShowMeAllContactsButton:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Kp4-gm-9ZE"/>
</connections>
</button>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="fDl-Mm-UYe" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="h17-6C-eo5"/>
<constraint firstItem="fDl-Mm-UYe" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="leG-6x-mjh"/>
<constraint firstItem="fLh-BV-xjz" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="Aa8-dw-cbR"/>
<constraint firstItem="fLh-BV-xjz" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="CnK-Pv-V5t"/>
</constraints>
</view>
</viewController>
Expand Down
16 changes: 14 additions & 2 deletions Contacts Picker/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,25 @@ class ViewController: UIViewController, EPPickerDelegate {
// Dispose of any resources that can be recreated.
}

@IBAction func onTouchShowMeContactsButton(_ sender: AnyObject) {
@IBAction func onTouchShowMeEmailContactsButton(_ sender: AnyObject) {

let contactPickerScene = EPContactsPicker(delegate: self, multiSelection:true, subtitleCellType: SubtitleCellValue.email)
let contactPickerScene = EPContactsPicker(delegate: self, multiSelection: true, subtitleCellType: .email, selectAllContactsOnLoad: true, sendInvitesButtonEnabled: true)
let navigationController = UINavigationController(rootViewController: contactPickerScene)
self.present(navigationController, animated: true, completion: nil)

}
@IBAction func onTouchShowMePhoneContactsButton(_ sender: Any) {
let contactPickerScene = EPContactsPicker(delegate: self, multiSelection: true, subtitleCellType: .phoneNumber, selectAllContactsOnLoad: false, sendInvitesButtonEnabled: true)
let navigationController = UINavigationController(rootViewController: contactPickerScene)
self.present(navigationController, animated: true, completion: nil)
}
@IBAction func onTouchShowMeAllContactsButton(_ sender: Any) {
let contactPickerScene = EPContactsPicker(delegate: self, multiSelection: false)
let navigationController = UINavigationController(rootViewController: contactPickerScene)
self.present(navigationController, animated: true, completion: nil)
}



//MARK: EPContactsPicker delegates
func epContactPicker(_: EPContactsPicker, didContactFetchFailed error : NSError)
Expand Down
33 changes: 17 additions & 16 deletions EPContactsPicker.podspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Pod::Spec.new do |s|
s.name = "EPContactsPicker"
s.version = "2.0.2"
s.summary = "A contacts picker component for iOS written in swift using new contacts framwork"
s.description = <<-DESC
s.name = "EPContactsPicker"
s.version = "2.0.4"
s.summary = "A contacts picker component for iOS written in swift using new contacts framwork"
s.description = <<-DESC
Features
1. Single selection and multiselection option
2. Making the secondary data to show as requested(Phonenumbers, Emails, Birthday and Organisation)
Expand All @@ -11,17 +11,18 @@ Features
5. EPContact object to get the properties of the contacts
DESC

s.homepage = "https://github.com/ipraba/EPContactsPicker"
s.license = 'MIT'
s.author = { "Prabaharan" => "mailprabaharan.e@gmail.com" }
s.source = { :git => "https://github.com/ipraba/EPContactsPicker.git", :tag => s.version.to_s }
s.platform = :ios, '9.0'
s.requires_arc = true
s.source_files = 'Pods'
s.frameworks = 'Contacts', 'ContactsUI'
s.resources = ["Pods/EPContactCell.xib"]
s.resource_bundles = {
'EPContactsPicker' => ['Pods/**/*.xib']
}
s.homepage = "https://github.com/ipraba/EPContactsPicker"
s.license = 'MIT'
s.author = { "Prabaharan" => "mailprabaharan.e@gmail.com" }
s.source = { :git => "https://github.com/ipraba/EPContactsPicker.git", :tag => s.version.to_s }
s.platform = :ios, '9.0'
s.requires_arc = true
s.frameworks = 'Contacts', 'ContactsUI'
s.source_files = "Pods/*.{swift}"
s.resources = ["Pods/*.xib", "Pods/*.png"]
s.resource_bundles = {
'EPContactsPicker' => ['Pods/**/*.{xib,png}']
}


end
Binary file added Pods/CircularSelected_icon@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pods/CircularSelected_icon@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pods/CircularUnselected_icon@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pods/CircularUnselected_icon@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions Pods/EPConstants.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Pods/EPContact.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions Pods/EPContactCell.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading