From 18448ae08478624fa68e5b8349fbd7929a88ec01 Mon Sep 17 00:00:00 2001 From: Roman Mazeev Date: Mon, 27 Jan 2025 22:49:58 +0100 Subject: [PATCH] Update README.md --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 356baef..cb8abb0 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,9 @@ dependencies: [ ] ``` ## Usage -The parser is able to validate the MRZ string and parse the MRZ code. Let's start by initializing our parser. +To parse MRZ string use the `parse` static method which returns the `MRZResult` structure with all the necessary data. ```swift -let parser = MRZParser() -``` -For parsing, we use the `parse` method which returns the `MRZResult` structure with all the necessary data. -```swift -parser.parse(mrzString: mrzString) +MRZParser.parse(mrzString: mrzString) ``` ## Example ### TD1 (ID card)