This project implements a Swift program which generates random bank cards. The goal of this project is to provide an example of how to use SnapKit and the Kinetic framework for building iOS apps with Kinetic and SnapKit.
The “swipeable cards ios swift” is a project that uses the Swift programming language to create an interface for generating bank card. The app has been created using SnapKit, which allows you to code with ease.
With Swift 3 and the SnapKit DSL, you can create bank cards and credit cards.
It represents cards as UIView and is a subclass of UIView. iCard is a simple tool for generating Credit & Bank Cards.
.cirrusIcon -.chip1 -.blueway -.withBothBankIcon &.chip3 -.blueway -.withBothBankIcon -.masterCardIcon &.chip3 -.blueway -.withBothBankIcon -.masterCardIcon
.chip2 -.yelloway -.googleWalletIcon -.cirrusIcon &.chip2 -.yelloway -.withDefaultTitles &.chip2 -.yelloway -.withDefaultTitles
.chip1 -.cirrusIcon -.bothBankIcon &.chip2 -.bothBankIcon
init(cardStyleWithBackground cardStyle, withCard, cardColor, cardColor, cardColor, card color scheme: card pinIcon: chipIcons, creditIcons: creditIcons) Colors, pinIcon: chipIcons, creditIcons: creditIcons)
You should use this initializer to create an iCard with a single backgroundColor, and you must choose cardStyle, cardColors, pinIcons, and creditIcons.
iCreditCard = iCreditCard = iCreditCard = iCreditCard = iCreditCard = iCreditCard (cardStyleWithBackgroundColor: .withBothBankIcon, withCardColors: .blueway, pinIcon: .chip1, creditIcons: .cirrusIcon)
You may also use this init method if you generate an iCreditCard with a unique background picture. If you don’t give UIImage to init, it will have a basic backgroundColor if withCardImage is nil.
cardStyleWithBackgroundImage: cardStyle, withCardImage: UIImage?, pinIcon: chipIcons, creditIcons: creditIcons) init(cardStyleWithBackgroundImage: cardStyle, withCardImage: UIImage?, pinIcon: chipIcons, creditIcons: creditIcons) init(cardStyleWithBackgroundImage: cardStyle, with
Here’s how to make an iCard with a backdrop image.
iCreditCard = iCreditCard(cardStyleWithBackgroundImage:.withBothBankIcon, withCardImage: UIImage(named:”simpleBackgroundImage”), pinIcon:.chip2, creditIcons:.maestroIcon)
You may also make an iCard with no or just one parameter.
convenience cardStyleWithBackgroundColor:.withBothBankIcon, withCardColors:.yelloway, pinIcon:.chip1, creditIcons:.cirrusIcon) init() self.init(cardStyleWithBackgroundColor:.withBothBankIcon, withCardColors:.yelloway, pinIcon:.chip1, creditIcons:.cirrusIcon)
Here’s a basic illustration of what I’m talking about. You’ll get an iCard with the.withBothBankIcon style,.yelloway color,.chip1 chip, and.cirrusIcon icon if you use this initializer.
Here’s an example of how to use it.
iCreditCard = iCreditCard = iCreditCard = iCreditCard = iCreditCard = iCreditCard ()
Below is another init for your convenience.
convenience cardStyleWithBackgroundColor:.withBothBankIcon, withCardColors:.yelloway, pinIcon:.chip2, creditIcons:.americanExpressIcon) self.init(cardStyleWithBackgroundColor:.withBothBankIcon, withCardColors:.yelloway, pinIcon:.chip2, creditIcons:.americanExpressIcon)
Here’s an example of how to use it.
iCreditCard = iCreditCard = iCreditCard = iCreditCard = iCreditCard = iCreditCard = (cardColors: .blueway)
case blueway case yelloway public enum cardColors
When choosing a card backgroundColor, cardColors currently only supports two colors: blue and yellow.
case withBackgroundColor case withBackgroundImage public enum cardVisual
cardVisual is used to choose the kind of card.
case withDefaultTitles case withTopBankIcon case withBottomBankIcon case withBothBankIcon public enum cardStyle
cardStyle is used to change the style of a card.
case chip1 case chip2 case chip3 public enum chipIcons
ChipIcons is a tool for selecting card chip icons. There are only three distinct chip icons available.
credit public enumeration Case of AmericanExpress Icons Bitcoin icon case Blue icon case Cirrus PayIcon case Citi icon case cvs cvs cvs cvs cvs cvs cv hsbc hsbc hsbc hsbc hsbc hsbc hs maestro icon case maestro icon case Icon2 case masterCard masterCard masterCard masterCard masterCard masterCard masterCard masterCard master MasterCard in a Mini Case Money details in the case Paypal GramIcon case PayPal icon case Icon Visa for a simple scenario Visa for Icon Case IconVisa for a more serious case wePayIcon case westernUnionIcon case wePayIcon case wePayIcon case wePayIcon case wePayIcon case we Symbol
case chip1 case chip2 case chip3 public enum chipIcons
Parameter |
Icons |
.chip1 |
|
.chip2 |
|
.chip3 |
|
Icons and fonts
For cardNumber, I used the HALTER .ttf font, and for other icons, I utilized the Icon-Icons Website.
Installation
use iCreditCard.swift git clone REPO URL cd iCard/
Development
Do you want to help out? Feel free to add anything to this with a description of what you provided.
Todos
- Tests should be written
- With init, add BackView Generator.
License
MIT
‘Open Source’ is a term that refers to software that
GitHub
https://github.com/eliakorkmaz/iCard
The “uitableviewcell card style swift” is a library that can be used to create cards with a textured background. It uses the SnapKit DSL to make it easy to build.
Related Tags
- card view swift github
- ios credit card ocr
- credit card textfield ios swift
- card view in swift
- scan credit card ios swift