This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct ContentView: View { | |
| var body: some View { | |
| NavigationView{ | |
| SwiftUIWebView(url: URL(string: "https://ihwan.id")) | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct ContentView: View { | |
| var body: some View { | |
| TabView { | |
| Text("Home Page") | |
| .tabItem { | |
| Image(systemName: "house.fill") | |
| Text("Homeb") | |
| } | |
| Text("Favorite Page") | |
| .tabItem { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // run | |
| // | |
| // Created by Ihwan ID on 30/03/20. | |
| // Copyright © 2020 Ihwan ID. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // WebView.swift | |
| // SwiftUIWebView | |
| // | |
| // Created by Ihwan ID on 13/12/20. | |
| // | |
| import SwiftUI | |
| import WebKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "user": { | |
| "name": "Pak Bedu", | |
| "email": "[email protected]" | |
| }, | |
| "children": [ | |
| { | |
| "id": 123, | |
| "name": "Wahyu Amarulloh", | |
| "balance": 7500, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import PlaygroundSupport | |
| //let view2 = UIView() | |
| //view2.alpha = 0.5 | |
| let parrentView = UIView(frame: CGRect(x: 0, y: 0, width: 80, height: 80)) | |
| parrentView.backgroundColor = .red |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // dekontaminasi | |
| // | |
| // Created by Ihwan ID on 24/09/20. | |
| // | |
| import UIKit | |
| class ViewController: UIViewController { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct StatsResponse: Codable { | |
| let regions: [Province] | |
| let numbers: Numbers | |
| let timestamp: Int | |
| let name: String | |
| let type: String | |
| } | |
| struct Province: Codable { | |
| let type: String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "country", | |
| "name": "Indonesia", | |
| "timestamp": 1600819200000, | |
| "numbers": { | |
| "infected": 257388, | |
| "recovered": 187958, | |
| "fatal": 9977 | |
| }, | |
| "regions": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // simple-table-view | |
| // | |
| // Created by Ihwan ID on 06/09/20. | |
| // Copyright © 2020 Ihwan ID. All rights reserved. | |
| // | |
| import UIKit |