Releases: aaronlab/SweetCardScanner
Releases · aaronlab/SweetCardScanner
Remove unnecessary init code
Remove dynamic type
Remove dynamic type
Add public initializer for CreditCard Model
Release Notes
- Add public initializer for
CreditCard Model
Description
- Now you can try to use the model as a placeholder or something else
struct CreditCardCell_Previews: PreviewProvider {
static var previews: some View {
CreditCardCell(creditCard: CreditCard(number: "1234-1234-1234-1234", name: "Aaron Lee", expireDate: nil))
}
}
v1.0.0
Release Notes
- Implemented customizable
wordsToSkip
andinvalidNames
- Added
year: Int
,month: Int
,vendor: SweetCardScanner.CardVendor
,isNotExpired: Bool?
intoCreditCard Model
Default Values
- wordsToSkip: Array?
["mastercard", "jcb", "visa", "express", "bank", "card", "platinum", "reward"]
- invalidNames: Array?
["expiration", "valid", "since", "from", "until", "month", "year"]
Kinds of Card Vendors
Unknown, Amex, Visa, MasterCard, Diners, Discover, JCB, Elo, Hipercard, UnionPay
0.1.3
- Added skip words for image processing
- ["mastercard", "jcb", "visa", "express", "bank", "card", "platinum", "reward", "check", "credit", "american", "express", "cashbag", "keb", "nhcard", "global", "hyundai", "zero", "kakaobank", "thru", "authorized", "signature", "authorized signature", "hyundai card", "nonghyup", "payon", "money"]
0.1.2: fix: Fix not re-initializing issue
-
Fixed
not re-initializing
issue when coming back to the scanner view- Changed the methods
viewDidLoad
toviewWillAppear
inCreditCardScannerViewController
- Added the command line that
re-initializes ImageAnalyzer
inviewWillAppear
- Fixed for
NavigationView
- Changed the methods
-
Updated LICENSE
-
Updated README.md