diff --git a/BTNavigationDropdownMenu.podspec b/BTNavigationDropdownMenu.podspec index ca4f997d..b6f20987 100644 --- a/BTNavigationDropdownMenu.podspec +++ b/BTNavigationDropdownMenu.podspec @@ -1,16 +1,13 @@ Pod::Spec.new do |s| s.name = "BTNavigationDropdownMenu" - s.version = "0.5" + s.version = "0.7" s.summary = "The elegent navigation dropdown menu" - s.description = <<-DESC - The elegant **dropdown menu**, written in **Swift**, appears underneath **navigation bar** to display a list of related items when a user click on the navigation title. - DESC + s.description = "The elegant yet functional dropdown menu, written in Swift, appears underneath the navigation bar to display a list of defined items when a user clicks on the navigation title." s.homepage = "https://github.com/PhamBaTho/BTNavigationDropdownMenu" s.screenshots = "https://raw.githubusercontent.com/PhamBaTho/BTNavigationDropdownMenu/master/Assets/Demo.png" s.license = "MIT" - s.author = { "Pham Ba Tho" => "phambatho@gmail.com" } - s.social_media_url = "https://www.facebook.com/phambatho" - s.platform = :ios, '8.0' + s.author = { "Tho Pham" => "phambatho@gmail.com" } + s.platform = :ios, '9.0' s.source = { :git => "https://github.com/PhamBaTho/BTNavigationDropdownMenu.git", :tag => s.version.to_s } s.source_files = "Source/**/*.swift" s.resources = "Source/*.bundle" diff --git a/CHANGELOG.md b/CHANGELOG.md index 979e5145..dc7f402e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,30 @@ +## [0.7](https://github.com/PhamBaTho/BTNavigationDropdownMenu/releases/tag/0.7) (16-11-2020) +### Fixed +- Update deprecated index(of:) to firstIndex(of:) [(#156)](https://github.com/PhamBaTho/BTNavigationDropdownMenu/pull/156) +- Remove ImplicitlyUnwrappedOptional to be compatible with Swift 5. + +### Improved +- Update project configuration to be compatible with Swift 5 and Xcode 10.2+ +- Use system font as default value of `navigationBarTitleFont`. + +## [0.6](https://github.com/PhamBaTho/BTNavigationDropdownMenu/releases/tag/0.6) (19-02-2019) +- Merged PR [#145](https://github.com/PhamBaTho/BTNavigationDropdownMenu/pull/145): Carthage support. + +## [0.5](https://github.com/PhamBaTho/BTNavigationDropdownMenu/releases/tag/0.5) (19-08-2018) +- Support Xcode 10 and Swift 4.2 + +## [0.4.1](https://github.com/PhamBaTho/BTNavigationDropdownMenu/releases/tag/0.4.1) (01-08-2016) +- Merge PR [#71](https://github.com/PhamBaTho/BTNavigationDropdownMenu/pull/71): Now you can configure selectedCellTextLabelColor. arrowTintColor, navigationBarTitleFont +- Merge PR [#75](https://github.com/PhamBaTho/BTNavigationDropdownMenu/pull/75): Now you can keep navigation title static when selecting items in dropdown menu +- Change keepSelectedCellColor to shouldKeepSelectedCellColor +- Fix a bug in updateItems() when updating menu view after HTTP request. + +## [0.4](https://github.com/PhamBaTho/BTNavigationDropdownMenu/releases/tag/0.4) (23-06-2016) +- Resolve issue [#57](https://github.com/PhamBaTho/BTNavigationDropdownMenu/issues/57) and [#63](https://github.com/PhamBaTho/BTNavigationDropdownMenu/issues/63). Now you can scroll to the last one when the list is longer than screen's height. +- Resolve issue [#62](https://github.com/PhamBaTho/BTNavigationDropdownMenu/issues/62) (Alternate scope initialization). Now you can initialize menuView where `title` parameter doesn't need to be one of the items array. +- Resolve issue [#68](https://github.com/PhamBaTho/BTNavigationDropdownMenu/issues/68). Now, you can use `updateItems(items: [AnyObject])` to update items for the dropdown menu after it has been initialized. +- Add containView as parameter when initializing menuView. + ## [0.3](https://github.com/PhamBaTho/BTNavigationDropdownMenu/releases/tag/0.3) (17-04-2016) - Add toggle() functions - Add keepSelectedCellColor property diff --git a/README.md b/README.md index 956e8e17..c219b050 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,3 @@ -### Swift 5 is coming soon. - ---- - ![alt tag](https://github.com/PhamBaTho/BTNavigationDropdownMenu/blob/master/Assets/BTNavigationDropdownLogo.png) [![Pod Version](https://img.shields.io/cocoapods/v/BTNavigationDropdownMenu.svg?style=flat)](http://cocoadocs.org/docsets/BTNavigationDropdownMenu/) @@ -40,7 +36,7 @@ $ brew install carthage To integrate BTNavigationDropdownMenu into your Xcode project using Carthage, specify it in your `Cartfile`: ```ogdl -github "PhamBaTho/BTNavigationDropdownMenu" ~> 0.5 +github "PhamBaTho/BTNavigationDropdownMenu" ~> 0.7 ``` Run `carthage update` to build the framework and drag the built `BTNavigationDropdownMenu.framework` into your Xcode project. @@ -96,9 +92,9 @@ First, assign the items and frame for the dropdown menu. Then, customize the loo `cellTextLabelColor` **- Text color inside of the cell** *Default is darkGrayColor()* -`cellTextLabelFont` **- Font inside the cell** *Default is HelveticaNeue-Bold, size 17* +`cellTextLabelFont` **- Font inside the cell** *Default is bold system font, size 17* -`navigationBarTitleFont` **- Navigation bar title font** *Default is HelveticaNeue-Bold, size 17* +`navigationBarTitleFont` **- Navigation bar title font** *Default is vold system font, size 17* `cellTextLabelAlignment` **- Text alignment inside of the cell** *Default is .Left* @@ -127,8 +123,7 @@ First, assign the items and frame for the dropdown menu. Then, customize the loo `arrowTintColor` **- Tint color of the arrow.** *Default is whiteColor()* ## Requirement -- iOS 8.0+ (CocoaPods with Swift support will only work on iOS 8.0+. Alternatively, you will have to import library manually to your project) -- Xcode 8.0+, Swift 3.0+ +- iOS 9.0+ ## Changelog See the [CHANGELOG](https://github.com/PhamBaTho/BTNavigationDropdownMenu/blob/master/CHANGELOG.md) for details