Revision 9a71f7ed ChatSecure/Classes/Views/Cells/OMEMODeviceFingerprintCell.swift

View differences:

ChatSecure/Classes/Views/Cells/OMEMODeviceFingerprintCell.swift
17 17
    //http://stackoverflow.com/a/34454633/805882
18 18
    func splitEvery(_ n: Int) -> [String] {
19 19
        var result: [String] = []
20
        let chars = Array(characters)
20
        let chars = Array(self)
21 21
        for index in stride(from: 0, to: chars.count, by: n) {
22 22
            result.append(String(chars[index..<min(index+n, chars.count)]))
23 23
        }

Also available in: Unified diff