Skip to content

Commit

Permalink
Change View protol to CSVView for SwiftUI compatibility (#93)
Browse files Browse the repository at this point in the history
Closes #89

Signed-off-by: campionfellin <campionfellin@gmail.com>
  • Loading branch information
campionfellin committed Nov 29, 2020
1 parent 8061807 commit 1357bfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SwiftCSV/CSV.swift
Expand Up @@ -8,7 +8,7 @@

import Foundation

public protocol View {
public protocol CSVView {
associatedtype Rows
associatedtype Columns

Expand Down
2 changes: 1 addition & 1 deletion SwiftCSV/EnumeratedView.swift
Expand Up @@ -8,7 +8,7 @@

import Foundation

public struct EnumeratedView: View {
public struct EnumeratedView: CSVView {

public struct Column {
public let header: String
Expand Down
2 changes: 1 addition & 1 deletion SwiftCSV/NamedView.swift
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2016 Naoto Kaneko. All rights reserved.
//

public struct NamedView: View {
public struct NamedView: CSVView {

public var rows: [[String : String]]
public var columns: [String : [String]]
Expand Down

0 comments on commit 1357bfc

Please sign in to comment.