Skip to content

Instantly share code, notes, and snippets.

View Shubham0812's full-sized avatar
🎯
Focusing

Shubham Kr. Singh Shubham0812

🎯
Focusing
View GitHub Profile
//
// BlobView.swift
// Prototypes
//
// Created by Shubham on 07/07/26.
//
import SwiftUI
struct BlobView: View {
@Shubham0812
Shubham0812 / DotsLoader.swift
Created June 8, 2026 20:40
Dots Loader - SwiftUI
import SwiftUI
struct DotsLoader: View {
// MARK: - Variables
var loaderColor: Color = .blue
// MARK: - Views
var body: some View {
TimelineView(.animation) { context in
@Shubham0812
Shubham0812 / MainView.swift
Created November 16, 2024 03:51
MainView
//
// ContentView.swift
// ToDo_UI
//
// Created by Shubham on 11/11/24.
//
import SwiftUI
struct MainView: View {
//
// TaskAddingView.swift
// ToDo_UI
//
// Created by Shubham on 12/11/24.
//
import SwiftUI
struct TaskAddingView: View {
@Shubham0812
Shubham0812 / TaskListView.swift
Last active November 15, 2024 18:55
TaskListView
//
// TaskListView.swift
// ToDo_UI
//
// Created by Shubham on 13/11/24.
//
import SwiftUI
struct TaskListView: View {
@Shubham0812
Shubham0812 / TopBarView.swift
Last active November 15, 2024 18:56
TopBarView
//
// TopBarView.swift
// ToDo_UI
//
// Created by Shubham on 12/11/24.
//
import SwiftUI
struct TopBarView: View {
@Shubham0812
Shubham0812 / TickShape.swift
Created November 15, 2024 04:40
TaskRowView
import SwiftUI
struct Tick: Shape {
func path(in rect: CGRect) -> Path {
let cX = rect.midX
let cY = rect.midY
var path = Path()
@Shubham0812
Shubham0812 / TaskRowView.swift
Last active November 15, 2024 18:56
TaskRowView
//
// TaskRowView.swift
// ToDo_UI
//
// Created by Shubham on 12/11/24.
//
import SwiftUI
struct TaskRowView: View {
import Foundation
import OSLog
enum LogType {
case info
case notice
case warning
case fault
// case debug
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
self.registerForAppTrackingTransparency(launchOptions)
return true
}
private func registerForAppTrackingTransparency(_ launchOptions: [UIApplication.LaunchOptionsKey: Any]?) {
if #available(iOS 14, *) {
ATTrackingManager.requestTrackingAuthorization { (status) in