Singleton class with custom initializer
Assuming the dataToTransfer is always the same for a specific device, you can create this data in init()

class NearFieldManager {
    static let shared = NearFieldManager()
    private let dataToTransfer: Any

    private init() { //private to forbid instantiation 
        self.dataToTransfer = methodToCreateDeviceData()
    }
}