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
| // | |
| // ContentView.swift | |
| // Try14Oct2025 | |
| // | |
| // Created by Luthfi Abdurrahim on 14/10/25. | |
| // | |
| import SwiftUI | |
| struct ContentView: View { |
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
| // | |
| // ContentView26Playback.swift | |
| // Coba14July2025 | |
| // | |
| // Created by Luthfi Abdurrahim on 08/10/25. | |
| // | |
| import UIKit | |
| import AVFoundation |
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 ShippingInfoCardV2: View { | |
| /// Sample data (replace with your real bindings/models) | |
| let recipientName: String | |
| let phoneNumber: String | |
| let shippingAddress: String | |
| /// UI states (UI-only interactions) | |
| @State private var isAddressExpanded: Bool = false |
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
| // Analyze & Result - 1. ViewBuilder | |
| // BEFORE - without ViewBuilder | |
| struct MyStack<Content: View>: View { | |
| let content: () -> Content // no @ViewBuilder here | |
| var body: some View { | |
| VStack { | |
| content() | |
| } | |
| } |
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
| // | |
| // ContentView22.swift | |
| // Coba14July2025 | |
| // | |
| // Created by Luthfi Abdurrahim on 18/09/25. | |
| // | |
| import SwiftUI | |
| import Combine | |
| 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
| // | |
| // ContentView21.swift | |
| // Coba14July2025 | |
| // | |
| // Created by Luthfi Abdurrahim on 11/09/25. | |
| // | |
| import Foundation | |
| import SwiftUI |
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 | |
| import StoreKit | |
| struct ContentView: View { | |
| @State private var counter: Int = 0 | |
| var body: some View { | |
| VStack(spacing: 20) { | |
| Text("Hello, World!") | |
| .font(.largeTitle) |
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 | |
| // MARK: - Reusable PIN Input Overlay View | |
| struct PINInputOverlay: View { | |
| @State private var enteredPIN = "" | |
| @FocusState private var isTextFieldFocused: Bool | |
| @Binding var isPresented: Bool | |
| let title: String | |
| let onPINSubmitted: (String) -> Void |
NewerOlder