Skip to content

Commit 291a750

Browse files
authored
Update UIControlViewConfig.swift
1 parent b93627e commit 291a750

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/UIControlViewConfig.swift

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ public struct UIControlViewConfig {
1010
public var viewWidth: CGFloat!
1111
public var viewHeight: CGFloat!
1212

13-
// Show hide indicator or not
13+
// Show/hide indicator
1414
public var showHideIndicator: Bool!
1515

1616
// Max items to start scroll
1717
public var itemsToScroll: Int!
1818

1919
public init(cornerRadius: CGFloat = 9,
20-
viewWidth: CGFloat = UIScreen.main.bounds.width-26,
20+
viewWidth: CGFloat = UIScreen.main.bounds.width-30,
2121
viewHeight: CGFloat = 80,
2222
showHideIndicator: Bool = false,
2323
itemsToScroll: Int = 5) {
@@ -29,6 +29,7 @@ public struct UIControlViewConfig {
2929
self.showHideIndicator = showHideIndicator
3030
self.itemsToScroll = itemsToScroll
3131
}
32+
3233
}
3334

3435
// MARK: - UIControlViewQueue
@@ -43,6 +44,7 @@ public struct UIControlViewQueue {
4344
self.config = config
4445
self.actions = actions
4546
}
47+
4648
}
4749

4850
// MARK: - UIControlViewID
@@ -54,6 +56,7 @@ class UIControlViewID {
5456
static let containerViewID = 200020002
5557
static let hideViewID = 300030003
5658
static let IDArray = [backViewID, containerViewID, hideViewID]
59+
5760
}
5861

5962
class UIControlViewColors {

0 commit comments

Comments
 (0)