Skip to content

Commit

Permalink
🔖 Release 0.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien Grifasi committed Sep 25, 2019
1 parent 06132fa commit 10e6331
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 51 deletions.
10 changes: 6 additions & 4 deletions ExampleCarthage/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
0D28F630233B52E300C1C41D /* FlagPhoneNumber.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0D8C713C229298BA0026E0C7 /* FlagPhoneNumber.framework */; };
0D28F631233B52E300C1C41D /* FlagPhoneNumber.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0D8C713C229298BA0026E0C7 /* FlagPhoneNumber.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
0D37216C2293FBE900B5D8A3 /* StackViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D3721682293FBE900B5D8A3 /* StackViewController.swift */; };
0D37216D2293FBE900B5D8A3 /* ScrollViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D3721692293FBE900B5D8A3 /* ScrollViewController.swift */; };
0D37216E2293FBE900B5D8A3 /* SimpleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D37216A2293FBE900B5D8A3 /* SimpleViewController.swift */; };
Expand All @@ -15,17 +17,16 @@
0D52F8E82291D554003A362C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0D52F8E62291D554003A362C /* Main.storyboard */; };
0D52F8EA2291D555003A362C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0D52F8E92291D555003A362C /* Assets.xcassets */; };
0D52F8ED2291D555003A362C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0D52F8EB2291D555003A362C /* LaunchScreen.storyboard */; };
0D8C713F229298D30026E0C7 /* FlagPhoneNumber.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0D8C713C229298BA0026E0C7 /* FlagPhoneNumber.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
0D8C7140229298D40026E0C7 /* Embed Frameworks */ = {
0D28F632233B52E300C1C41D /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
0D8C713F229298D30026E0C7 /* FlagPhoneNumber.framework in Embed Frameworks */,
0D28F631233B52E300C1C41D /* FlagPhoneNumber.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -51,6 +52,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
0D28F630233B52E300C1C41D /* FlagPhoneNumber.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -100,7 +102,7 @@
0D52F8DC2291D554003A362C /* Sources */,
0D52F8DD2291D554003A362C /* Frameworks */,
0D52F8DE2291D554003A362C /* Resources */,
0D8C7140229298D40026E0C7 /* Embed Frameworks */,
0D28F632233B52E300C1C41D /* Embed Frameworks */,
);
buildRules = (
);
Expand Down
56 changes: 24 additions & 32 deletions ExampleCarthage/Example/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ExampleCarthage/Example/SimpleViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class SimpleViewController: UIViewController {
phoneNumberTextField.font = UIFont.systemFont(ofSize: 14)

// Custom the size/edgeInsets of the flag button
phoneNumberTextField.flagSize = CGSize(width: 35, height: 35)
phoneNumberTextField.flagButtonEdgeInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
phoneNumberTextField.flagButtonSize = CGSize(width: 35, height: 35)
phoneNumberTextField.flagButton.imageEdgeInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)

// Example of customizing the textField input accessory view
// let items = [
Expand Down
2 changes: 1 addition & 1 deletion ExampleOBJC/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '9.0'

target 'OBJCExample' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
Expand Down
10 changes: 5 additions & 5 deletions ExampleOBJC/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- FlagPhoneNumber (0.7.4):
- FlagPhoneNumber/libPhoneNumberiOS (= 0.7.4)
- FlagPhoneNumber/libPhoneNumberiOS (0.7.4)
- FlagPhoneNumber (0.7.6):
- FlagPhoneNumber/libPhoneNumberiOS (= 0.7.6)
- FlagPhoneNumber/libPhoneNumberiOS (0.7.6)

DEPENDENCIES:
- FlagPhoneNumber (from `../`)
Expand All @@ -11,8 +11,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
FlagPhoneNumber: 910ba6d1ac5b982e3a448f81243cf22ec8a55641
FlagPhoneNumber: ee8d015e7e92b776a3598e6a36718196e0d0dcf5

PODFILE CHECKSUM: 6a8f939c0b864187aff6550754dabc35eea00021
PODFILE CHECKSUM: af6e5d2788506eafefe46d7eddeb65bbfd0082b6

COCOAPODS: 1.6.0
2 changes: 1 addition & 1 deletion FlagPhoneNumber.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'FlagPhoneNumber'
s.version = '0.7.6'
s.version = '0.7.7'
s.summary = 'A formatted phone number UITextField with country flag picker.'

# This description is used to generate tags and improve search results.
Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,11 @@ FlagKit is used by default but you can customize the list with your own flag ico
Bundle.FlagIcons = YOUR_FLAG_ICONS_BUNDLE
```

You can change the size of the flag:
You can change the size of the flag button:
```swift
phoneNumberTextField.flagButtonSize = CGSize(width: 44, height: 44)
```

You can change the edge insets of the flag:
```swift
phoneNumberTextField.flagButtonEdgeInsets = UIEdgeInsetsMake(5, 10, 5, 10)
```

If you set the parentViewController programmatically or from `@IBOutlet`, a search button appears in the picker inputAccessoryView to present a country search view controller:
```swift
phoneNumberTextField.parentViewController = self // or from @IBOutlet
Expand Down

0 comments on commit 10e6331

Please sign in to comment.