Skip to content

Instantly share code, notes, and snippets.

View luthviar's full-sized avatar

Luthfi Abdur Rahim luthviar

View GitHub Profile
//
// ContentView3.swift
// Mon10nov
//
// Created by Luthfi Abdurrahim on 10/11/25.
// sourece: https://github.com/copilot/c/32f66827-e081-447d-9f57-a9b61d82177a
import Foundation
// MARK: - API Models (based on provided JSON)
//
// ContentView.swift
// Try14Oct2025
//
// Created by Luthfi Abdurrahim on 14/10/25.
//
import SwiftUI
struct ContentView: View {
@luthviar
luthviar / VideoClipsPlayerScreen.swift
Last active October 8, 2025 08:47
VideoClipsPlayerScreen.swift
//
// ContentView26Playback.swift
// Coba14July2025
//
// Created by Luthfi Abdurrahim on 08/10/25.
//
import UIKit
import AVFoundation
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
@luthviar
luthviar / TransferKnowledgeSwiftUIEfficiency.swift
Last active September 23, 2025 03:43
TransferKnowledgeSwiftUIEfficiency.swift
// Analyze & Result - 1. ViewBuilder
// BEFORE - without ViewBuilder
struct MyStack<Content: View>: View {
let content: () -> Content // no @ViewBuilder here
var body: some View {
VStack {
content()
}
}
@luthviar
luthviar / SimpleToastSwiftUI+UIKitReliable.swift
Last active September 18, 2025 06:23
SimpleToastSwiftUI+UIKitReliable.swift
//
// ContentView22.swift
// Coba14July2025
//
// Created by Luthfi Abdurrahim on 18/09/25.
//
import SwiftUI
import Combine
import UIKit
@luthviar
luthviar / OrderTrackingTimelineHistoryScreen.swift
Created September 11, 2025 02:01
OrderTrackingTimelineHistoryScreen.swift SwiftUI
//
// ContentView21.swift
// Coba14July2025
//
// Created by Luthfi Abdurrahim on 11/09/25.
//
import Foundation
import SwiftUI
@luthviar
luthviar / RequestReviewSwiftUI.swift
Last active August 26, 2025 04:28
RequestReviewSwiftUI.swift
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)
//
// ContentView19.swift
// Coba14July2025
//
// Created by Luthfi Abdurrahim on 21/08/25.
//
import SwiftUI
import ThemeEazy
@luthviar
luthviar / SimpleAddOtherProductBottomAndShare.swift
Last active August 14, 2025 08:54
SimpleAddOtherProductBottomAndShare SwiftUI
//
// ContentView16.swift
// Coba14July2025
//
// Created by Luthfi Abdurrahim on 14/08/25.
//
import SwiftUI
struct DiscoverProductsCard: View {