Skip to content

Commit

Permalink
Use Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
murselturk committed Sep 21, 2018
1 parent 256339b commit dfb0113
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/ReusableKit/UICollectionView+ReusableKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ public enum SupplementaryViewKind: String {

public init?(rawValue: String) {
switch rawValue {
case UICollectionElementKindSectionHeader: self = .header
case UICollectionElementKindSectionFooter: self = .footer
case UICollectionView.elementKindSectionHeader: self = .header
case UICollectionView.elementKindSectionFooter: self = .footer
default: return nil
}
}

public var rawValue: String {
switch self {
case .header: return UICollectionElementKindSectionHeader
case .footer: return UICollectionElementKindSectionFooter
case .header: return UICollectionView.elementKindSectionHeader
case .footer: return UICollectionView.elementKindSectionFooter
}
}
}
Expand Down

0 comments on commit dfb0113

Please sign in to comment.