Skip to content

Commit

Permalink
Use Xcode 9.3 and Swift 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
devxoul committed Jun 14, 2018
1 parent 2b1548a commit d42e000
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0
4.1
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
osx_image: xcode9
osx_image: xcode9.3
language: objective-c
sudo: required
env:
global:
- PROJECT="ReusableKit.xcodeproj"
- SCHEME="ReusableKit-Package"
- IOS_SDK="iphonesimulator11.0"
- IOS_SDK="iphonesimulator11.3"
- MACOS_SDK="macosx10.13"
- TVOS_SDK="appletvsimulator11.0"
- TVOS_SDK="appletvsimulator11.3"
- FRAMEWORK="ReusableKit"
matrix:
- SDK="$IOS_SDK" DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=11.0"
- SDK="$IOS_SDK" DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=11.3"

install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ReusableKit

![Swift](https://img.shields.io/badge/Swift-3.1-orange.svg)
![Swift](https://img.shields.io/badge/Swift-4.1-orange.svg)
[![CocoaPods](http://img.shields.io/cocoapods/v/ReusableKit.svg)](https://cocoapods.org/pods/ReusableKit)
[![Build Status](https://travis-ci.org/devxoul/ReusableKit.svg)](https://travis-ci.org/devxoul/ReusableKit)
[![Codecov](https://img.shields.io/codecov/c/github/devxoul/ReusableKit.svg)](https://codecov.io/gh/devxoul/ReusableKit)
Expand Down
2 changes: 1 addition & 1 deletion Sources/ReusableKit/ReusableKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public struct ReusableCell<Cell: CellType> {
/// - parameter nib: A `UINib` instance. Use this when registering from xib.
public init(identifier: String? = nil, nib: UINib? = nil) {
self.identifier = nib?.instantiate(withOwner: nil, options: nil).lazy
.flatMap { ($0 as? CellType)?.reuseIdentifier }
.compactMap { ($0 as? CellType)?.reuseIdentifier }
.first ?? identifier ?? UUID().uuidString
self.nib = nib
}
Expand Down

0 comments on commit d42e000

Please sign in to comment.