Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

public class func cardType #16

@alexookah

Description

@alexookah

do {
let cardType = try SwiftLuhn.cardType(for: cc_number_to_check!)
switch cardType{
case .visa:

using this code can't use cardType.

'cardType' is inaccessible due to 'internal' protection level

i added public:

public class func cardType(for cardNumber: String, suggest: Bool = false) throws -> CardType {

and it works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions