mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
30 lines
923 B
Swift
30 lines
923 B
Swift
|
//
|
||
|
// ReceivePageViewController.swift
|
||
|
// BlueWalletWatch Extension
|
||
|
//
|
||
|
// Created by Marcos Rodriguez on 6/15/24.
|
||
|
// Copyright © 2024 BlueWallet. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
import WatchKit
|
||
|
|
||
|
class ReceivePageInterfaceController: WKInterfaceController {
|
||
|
static let identifier = "ReceivePageInterfaceController"
|
||
|
var pageNames = ["Address", "Payment Code"]
|
||
|
var pageControllers = ["ReceiveInterfaceController", "ReceiveInterfaceController"]
|
||
|
|
||
|
override func awake(withContext context: Any?) {
|
||
|
super.awake(withContext: context)
|
||
|
|
||
|
let wallet = context as? Wallet
|
||
|
|
||
|
WKInterfaceController.reloadRootPageControllers(
|
||
|
withNames: pageControllers,
|
||
|
contexts: [(wallet,ReceiveMethod.Onchain , ReceiveType.Address), (wallet, ReceiveMethod.Onchain, ReceiveType.PaymentCode)],
|
||
|
orientation: .horizontal,
|
||
|
pageIndex: 0
|
||
|
)
|
||
|
}
|
||
|
}
|