From db4cd0fe19333cbe93829dc08caa4f5739a0f19c Mon Sep 17 00:00:00 2001 From: karthus <675377091@qq.com> Date: Wed, 16 Mar 2022 17:19:51 +0800 Subject: [PATCH] add readme --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bc9f225..1fc347a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ # did-motif-ios -A description of this package. +# Usage + +render DID Motif: + +1. add view + +``` +let motifView = DIDMotifView() +motifView.frame = CGRect(x: 0, y: 0, width: 40, height: 40) +// recomend to set size as square. +// DIDMotif will render it as it real shape + +``` + +2. render + +``` +motifView.renderWith(address: "zNKb2kbCvDHo9APDhD1trbAV1EVoYF6PcSJ3", shape: DIDMotifShage.square) +```