Skip to content
This repository was archived by the owner on Jun 17, 2018. It is now read-only.

Commit 6218ccd

Browse files
authored
Update CHANGELOG.md
1 parent 9fc0c2d commit 6218ccd

File tree

1 file changed

+40
-39
lines changed

1 file changed

+40
-39
lines changed

README.md

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defaultPage: Int
3838

3939
* duration for paging view animation
4040
```Swift
41-
animationDuration: NSTimeInterval
41+
animationDuration: TimeInterval
4242
```
4343

4444
* scrollEnabled for paging view. **Set false in case of using swipe-to-delete on your table view**
@@ -55,27 +55,27 @@ backgroundColor: UIColor
5555
```swift
5656
lazyLoadingPage: LazyLoadingPage
5757
public enum LazyLoadingPage {
58-
case One // Currently sets false to scrollEnabled at this moment. Should be fixed in the future.
59-
case Three
58+
case one // Currently sets false to scrollEnabled at this moment. Should be fixed in the future.
59+
case three
6060
}
6161
```
6262

6363
* a set of menu controller
6464
```swift
6565
menuControllerSet: MenuControllerSet
6666
public enum MenuControllerSet {
67-
case Single
68-
case Multiple
67+
case single
68+
case multiple
6969
}
7070
```
7171

7272
* component type of PagingMenuController
7373
```swift
7474
componentType: ComponentType
7575
public enum ComponentType {
76-
case MenuView(menuOptions: MenuViewCustomizable)
77-
case PagingController(pagingControllers: [UIViewController])
78-
case All(menuOptions: MenuViewCustomizable, pagingControllers: [UIViewController])
76+
case menuView(menuOptions: MenuViewCustomizable)
77+
case pagingController(pagingControllers: [UIViewController])
78+
case all(menuOptions: MenuViewCustomizable, pagingControllers: [UIViewController])
7979
}
8080
```
8181

@@ -98,7 +98,7 @@ height: CGFloat
9898

9999
* duration for menu view animation
100100
```Swift
101-
animationDuration: NSTimeInterval
101+
animationDuration: TimeInterval
102102
```
103103

104104
* decelerating rate for menu view
@@ -117,20 +117,20 @@ menuSelectedItemCenter: Bool
117117
displayMode: MenuDisplayMode
118118

119119
public enum MenuDisplayMode {
120-
case Standard(widthMode: MenuItemWidthMode, centerItem: Bool, scrollingMode: MenuScrollingMode)
121-
case SegmentedControl
122-
case Infinite(widthMode: MenuItemWidthMode, scrollingMode: MenuScrollingMode) // Requires three paging views at least
120+
case standard(widthMode: MenuItemWidthMode, centerItem: Bool, scrollingMode: MenuScrollingMode)
121+
case segmentedControl
122+
case infinite(widthMode: MenuItemWidthMode, scrollingMode: MenuScrollingMode) // Requires three paging views at least
123123
}
124124

125125
public enum MenuItemWidthMode {
126-
case Flexible
127-
case Fixed(width: CGFloat)
126+
case flexible
127+
case fixed(width: CGFloat)
128128
}
129129

130130
public enum MenuScrollingMode {
131-
case ScrollEnabled
132-
case ScrollEnabledAndBouces
133-
case PagingEnabled
131+
case scrollEnabled
132+
case scrollEnabledAndBouces
133+
case pagingEnabled
134134
}
135135
```
136136

@@ -143,9 +143,9 @@ if `MenuScrollingMode` is `PagingEnabled`, menu item should be selected one by o
143143
```Swift
144144
focusMode: MenuFocusMode
145145
public enum MenuFocusMode {
146-
case None
147-
case Underline(height: CGFloat, color: UIColor, horizontalPadding: CGFloat, verticalPadding: CGFloat)
148-
case RoundRect(radius: CGFloat, horizontalPadding: CGFloat, verticalPadding: CGFloat, selectedColor: UIColor)
146+
case none
147+
case underline(height: CGFloat, color: UIColor, horizontalPadding: CGFloat, verticalPadding: CGFloat)
148+
case roundRect(radius: CGFloat, horizontalPadding: CGFloat, verticalPadding: CGFloat, selectedColor: UIColor)
149149
}
150150
```
151151

@@ -160,8 +160,8 @@ dummyItemViewsSet: Int
160160
menuPosition: MenuPosition
161161

162162
public enum MenuPosition {
163-
case Top
164-
case Bottom
163+
case top
164+
case bottom
165165
}
166166
```
167167

@@ -182,10 +182,10 @@ horizontalMargin: CGFloat
182182
```swift
183183
displayMode: MenuItemDisplayMode
184184
public enum MenuItemDisplayMode {
185-
case Text(title: MenuItemText)
186-
case MultilineText(title: MenuItemText, description: MenuItemText)
187-
case Image(image: UIImage, selectedImage: UIImage?)
188-
case Custom(view: UIView)
185+
case text(title: MenuItemText)
186+
case multilineText(title: MenuItemText, description: MenuItemText)
187+
case image(image: UIImage, selectedImage: UIImage?)
188+
case custom(view: UIView)
189189
}
190190
```
191191

@@ -207,7 +207,7 @@ struct MenuOptions: MenuViewCustomizable {
207207

208208
struct PagingMenuOptions: PagingMenuControllerCustomizable {
209209
var componentType: ComponentType {
210-
return .All(menuOptions: MenuOptions(), pagingControllers: [UIViewController(), UIViewController()])
210+
return .all(menuOptions: MenuOptions(), pagingControllers: [UIViewController(), UIViewController()])
211211
}
212212
}
213213

@@ -232,7 +232,7 @@ struct MenuOptions: MenuViewCustomizable {
232232

233233
struct PagingMenuOptions: PagingMenuControllerCustomizable {
234234
var componentType: ComponentType {
235-
return .All(menuOptions: MenuOptions(), pagingControllers: [UIViewController(), UIViewController()])
235+
return .all(menuOptions: MenuOptions(), pagingControllers: [UIViewController(), UIViewController()])
236236
}
237237
}
238238

@@ -281,10 +281,8 @@ It creates a new paging menu controller. Do not forget to cleanup properties in
281281
## Requirements
282282

283283
iOS8+
284-
Swift 2.2+
285-
Xcode 7.3+
286-
287-
*Please use 0.8.0 tag for Swift 1.2*
284+
Swift 3.0+
285+
Xcode 8.0+
288286

289287
## Installation
290288

@@ -298,6 +296,14 @@ platform :ios, '8.0'
298296
use_frameworks!
299297

300298
pod "PagingMenuController"
299+
300+
post_install do |installer|
301+
installer.pods_project.targets.each do |target|
302+
target.build_configurations.each do |config|
303+
config.build_settings['SWIFT_VERSION'] = '3.0'
304+
end
305+
end
306+
end
301307
```
302308

303309
Then, run `pod install`
@@ -317,7 +323,7 @@ To install PagingMenuController into your Xcode project using Carthage, specify
317323
github "kitasuke/PagingMenuController"
318324
```
319325

320-
Then, run `carthage update`
326+
Then, run `carthage update --toolchain com.apple.dt.toolchain.Swift_3_0`
321327

322328
You can see `Carthage/Build/iOS/PagingMenuController.framework` now, so drag and drop it to `Linked Frameworks and Libraries` in General menu tab with your project.
323329
Add the following script to `New Run Script Phase` in Build Phases menu tab.
@@ -330,12 +336,7 @@ Also add the following script in `Input Files`
330336
$(SRCROOT)/Carthage/Build/iOS/PagingMenuController.framework
331337
```
332338

333-
In case you haven't installed Carthage yet, run the following command
334-
335-
```ruby
336-
$ brew update
337-
$ brew install carthage
338-
```
339+
In case you haven't installed Carthage yet, download the latest pkg from [Carthage](https://github.com/Carthage/Carthage/releases)
339340

340341
### Manual
341342

0 commit comments

Comments
 (0)