Skip to content

Commit

Permalink
Merge pull request #22 from eu-digital-identity-wallet/develop
Browse files Browse the repository at this point in the history
Add public access modifier to extractDisplayStringOrImage and extractDisplayStrings
  • Loading branch information
psima authored Jan 9, 2024
2 parents a0c9b8f + 1ca0457 commit d9098b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ extension MdocDecodable {
return Set( agesDict.filter { $1 == false }.keys.map { "age_over_\($0)" })
}

static func extractDisplayStringOrImage(_ name: String, _ cborValue: CBOR, _ bDebugDisplay: Bool, _ displayImages: inout [NameImage], _ ns: NameSpace, _ order: Int) -> NameValue {
public static func extractDisplayStringOrImage(_ name: String, _ cborValue: CBOR, _ bDebugDisplay: Bool, _ displayImages: inout [NameImage], _ ns: NameSpace, _ order: Int) -> NameValue {
var value = bDebugDisplay ? cborValue.debugDescription : cborValue.description
var dt = cborValue.mdocDataType
if name == "sex", let isex = Int(value), isex <= 2 {
Expand All @@ -110,7 +110,7 @@ extension MdocDecodable {
return node
}

static func extractDisplayStrings(_ nameSpaces: [NameSpace: [IssuerSignedItem]], _ displayStrings: inout [NameValue], _ displayImages: inout [NameImage]) {
public static func extractDisplayStrings(_ nameSpaces: [NameSpace: [IssuerSignedItem]], _ displayStrings: inout [NameValue], _ displayImages: inout [NameImage]) {
let bDebugDisplay = UserDefaults.standard.bool(forKey: "DebugDisplay")
var order = 0
for (ns,items) in nameSpaces {
Expand Down

0 comments on commit d9098b1

Please sign in to comment.