- games url updated

This commit is contained in:
2024-07-04 19:53:25 +05:30
parent 41e770f991
commit 70b951de42
2 changed files with 14 additions and 0 deletions

View File

@@ -52,6 +52,17 @@ class GamesListVC: UIViewController {
vm.updateTableHeight()
}
@IBAction func gameBtnTapped(_ sender: LocalisedElementsButton) {
let sb = UIStoryboard(name: K.StoryBoard.Games, bundle: nil)
let vcPush = sb.instantiateViewController(withIdentifier: K.StoryBoardID.Games.gamesWebViewVC) as! GamesWebViewVC
//https://wokastaging.in/wokagames/Games/html/WokaLudo/index.php
let gameData = vm.gameData[vm.indexToLoad]
vcPush.url = gameData.gameURL
vcPush.orientation = gameData.screenOrientation
vcPush.modalTransitionStyle = .crossDissolve
vcPush.modalPresentationStyle = .fullScreen
self.present(vcPush, animated: true)
}
}
// MARK: - TableView DataSource , Delegates

View File

@@ -80,6 +80,9 @@
<integer key="value" value="25"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="gameBtnTapped:" destination="Y6W-OH-hqX" eventType="touchUpInside" id="fe5-xJ-Uwd"/>
</connections>
</button>
</subviews>
</stackView>