summaryrefslogtreecommitdiff
path: root/Juick/Helpers/Data+Hex.swift
blob: 69c170d196088624115c51bdbb495ac448dca431 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//
//  Data+Hex.swift
//  Juick
//
//  Created by Vitaly Takmazov on 16.09.2020.
//  Copyright © 2020 com.juick. All rights reserved.
//

import Foundation

extension Data {
    var hexString: String {
        let hexString = map { String(format: "%02.2hhx", $0) }.joined()
        return hexString
    }
}