diff --git a/GCCountryPicker.podspec b/GCCountryPicker.podspec index 0ee5451..1d2a0ef 100644 --- a/GCCountryPicker.podspec +++ b/GCCountryPicker.podspec @@ -1,10 +1,10 @@ Pod::Spec.new do |s| s.name = 'GCCountryPicker' - s.version = '1.0.1' + s.version = '1.0.2' s.license = { :type => 'MIT', :file => 'LICENSE' } - s.summary = 'A searchable country picker view controller for iOS 11+ written in Swift.' + s.summary = 'A localized, searchable country picker view controller for iOS 11+ written in Swift.' s.description = <<-DESC - A searchable country picker view controller UI component for iOS 11+ written in Swift. + A localized, searchable country picker view controller UI component for iOS 11+ written in Swift. DESC s.homepage = 'https://github.com/graycampbell/GCCountryPicker' s.author = 'Gray Campbell' diff --git a/GCCountryPicker/GCCountryPickerViewController.swift b/GCCountryPicker/GCCountryPickerViewController.swift index c851be7..ffe8445 100644 --- a/GCCountryPicker/GCCountryPickerViewController.swift +++ b/GCCountryPicker/GCCountryPickerViewController.swift @@ -203,6 +203,19 @@ extension GCCountryPickerViewController { extension GCCountryPickerViewController { + /// Asks the delegate for the height to use for the header of a particular section. + /// + /// This method allows the delegate to specify section headers with varying heights. + /// + /// - Parameter tableView: The table-view object requesting this information. + /// - Parameter section: An index number identifying a section of tableView. + /// - Returns: A nonnegative floating-point value that specifies the height (in points) of the header for section. + + public override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { + + return 28 + } + /// Asks the delegate for a view object to display in the header of the specified section of the table view. /// /// The returned object can be a UILabel or UIImageView object, as well as a custom view. This method only works correctly when tableView(_:heightForHeaderInSection:) is also implemented. diff --git a/GCCountryPicker/Info.plist b/GCCountryPicker/Info.plist index 139f35e..0ecaf50 100644 --- a/GCCountryPicker/Info.plist +++ b/GCCountryPicker/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0.1 + 1.0.2 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/GCCountryPickerDemo/Info.plist b/GCCountryPickerDemo/Info.plist index e7e726c..62389db 100644 --- a/GCCountryPickerDemo/Info.plist +++ b/GCCountryPickerDemo/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.1 + 1.0.2 CFBundleVersion 1.0 LSRequiresIPhoneOS diff --git a/README.md b/README.md index 78df4e1..8a51e9d 100644 --- a/README.md +++ b/README.md @@ -63,13 +63,13 @@ pod 'GCCountryPicker' ### Documentation -- [Classes](http://cocoadocs.org/docsets/GCCountryPicker/1.0.0/Classes.html) - - [GCCountry](http://cocoadocs.org/docsets/GCCountryPicker/1.0.0/Classes/GCCountry.html) - - [GCCountryPickerViewController](http://cocoadocs.org/docsets/GCCountryPicker/1.0.0/Classes/GCCountryPickerViewController.html) +- [Classes](http://cocoadocs.org/docsets/GCCountryPicker/1.0.2/Classes.html) + - [GCCountry](http://cocoadocs.org/docsets/GCCountryPicker/1.0.2/Classes/GCCountry.html) + - [GCCountryPickerViewController](http://cocoadocs.org/docsets/GCCountryPicker/1.0.2/Classes/GCCountryPickerViewController.html) -- [Protocols](http://cocoadocs.org/docsets/GCCountryPicker/1.0.0/Protocols.html) - - [GCCountryPickerDelegate](http://cocoadocs.org/docsets/GCCountryPicker/1.0.0/Protocols/GCCountryPickerDelegate.html) - - [GCCountryPickerDataSource](http://cocoadocs.org/docsets/GCCountryPicker/1.0.0/Protocols/GCCountryPickerDataSource.html) +- [Protocols](http://cocoadocs.org/docsets/GCCountryPicker/1.0.2/Protocols.html) + - [GCCountryPickerDelegate](http://cocoadocs.org/docsets/GCCountryPicker/1.0.2/Protocols/GCCountryPickerDelegate.html) + - [GCCountryPickerDataSource](http://cocoadocs.org/docsets/GCCountryPicker/1.0.2/Protocols/GCCountryPickerDataSource.html) ### License