summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Extensions/String+AccountFormatting.swift
blob: 5a0e69b79e5c7df844bc01a32e60566e41f8b2a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//
//  String+AccountFormatting.swift
//  MullvadVPN
//
//  Created by Andreas Lif on 2022-06-10.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation

extension String {
    var formattedAccountNumber: String {
        split(every: 4).joined(separator: " ")
    }
}