Skip to content

Commit 309a4c8

Browse files
committed
Fix warnings
1 parent 2153490 commit 309a4c8

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- EasyPeasy (1.8.0)
3-
- Reveal-SDK (20)
3+
- Reveal-SDK (21)
44

55
DEPENDENCIES:
66
- EasyPeasy
@@ -13,8 +13,8 @@ SPEC REPOS:
1313

1414
SPEC CHECKSUMS:
1515
EasyPeasy: bfffe5d47bbaaef3e32888c250a196768484b43a
16-
Reveal-SDK: 43206a57f575632fd304e85385cc259b5d359e32
16+
Reveal-SDK: 3523e0eb7c562811c51bb71da6e523a6373702c8
1717

1818
PODFILE CHECKSUM: 801a5623355ad33f423fde4c805d2477d85eadb4
1919

20-
COCOAPODS: 1.6.0.beta.2
20+
COCOAPODS: 1.6.0

StackScrollView-Demo/TextViewStackCell.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ final class TextViewStackCell: StackCellBase, UITextViewDelegate {
2020
super.init()
2121

2222
addSubview(textView)
23-
textView <- Edges(UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8))
23+
textView.easy.layout(Edges(UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8)))
2424

25-
self <- Height(>=40)
25+
self.easy.layout(Height(>=40))
2626

2727
textView.font = UIFont.preferredFont(forTextStyle: .body)
2828
textView.isScrollEnabled = false

StackScrollView.xcodeproj/project.pbxproj

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,10 @@
319319
inputPaths = (
320320
"${PODS_ROOT}/Target Support Files/Pods-StackScrollView-Demo/Pods-StackScrollView-Demo-frameworks.sh",
321321
"${BUILT_PRODUCTS_DIR}/EasyPeasy/EasyPeasy.framework",
322-
"${PODS_ROOT}/Reveal-SDK/RevealServer-20/iOS/RevealServer.framework",
323322
);
324323
name = "[CP] Embed Pods Frameworks";
325324
outputPaths = (
326325
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/EasyPeasy.framework",
327-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RevealServer.framework",
328326
);
329327
runOnlyForDeploymentPostprocessing = 0;
330328
shellPath = /bin/sh;
@@ -570,11 +568,6 @@
570568
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
571569
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
572570
DEVELOPMENT_TEAM = KU2QEJ9K3Z;
573-
FRAMEWORK_SEARCH_PATHS = (
574-
"$(inherited)",
575-
"$(PROJECT_DIR)/Carthage/Build/iOS",
576-
"$(PROJECT_DIR)",
577-
);
578571
INFOPLIST_FILE = "StackScrollView-Demo/Info.plist";
579572
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
580573
PRODUCT_BUNDLE_IDENTIFIER = "me.muukii.StackScrollView-Demo";
@@ -589,11 +582,6 @@
589582
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
590583
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
591584
DEVELOPMENT_TEAM = KU2QEJ9K3Z;
592-
FRAMEWORK_SEARCH_PATHS = (
593-
"$(inherited)",
594-
"$(PROJECT_DIR)/Carthage/Build/iOS",
595-
"$(PROJECT_DIR)",
596-
);
597585
INFOPLIST_FILE = "StackScrollView-Demo/Info.plist";
598586
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
599587
PRODUCT_BUNDLE_IDENTIFIER = "me.muukii.StackScrollView-Demo";

StackScrollView/StackScrollView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ open class StackScrollView: UICollectionView, UICollectionViewDataSource, UIColl
115115

116116
open func remove(view: UIView, animated: Bool) {
117117

118-
if let index = views.index(of: view) {
118+
if let index = views.firstIndex(of: view) {
119119
views.remove(at: index)
120120
if animated {
121121
UIView.animate(
@@ -153,7 +153,7 @@ open class StackScrollView: UICollectionView, UICollectionViewDataSource, UIColl
153153
var indicesForRemove: [Int] = []
154154

155155
for view in views {
156-
if let index = self.views.index(of: view) {
156+
if let index = self.views.firstIndex(of: view) {
157157
indicesForRemove.append(index)
158158
}
159159
}
@@ -199,7 +199,7 @@ open class StackScrollView: UICollectionView, UICollectionViewDataSource, UIColl
199199
}
200200

201201
open func scroll(to view: UIView, at position: UICollectionView.ScrollPosition, animated: Bool) {
202-
if let index = views.index(of: view) {
202+
if let index = views.firstIndex(of: view) {
203203
scrollToItem(at: IndexPath(item: index, section: 0), at: position, animated: animated)
204204
}
205205
}

0 commit comments

Comments
 (0)