Skip to content

Instantly share code, notes, and snippets.

View Shubham0812's full-sized avatar
🎯
Focusing

Shubham Kr. Singh Shubham0812

🎯
Focusing
View GitHub Profile
@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
import Foundation
class Box<T> {
typealias Listener = (T) -> ()
// MARK:- variables
var value: T {
didSet {
listener?(value)
<key>UIAppFonts</key>
<array>
<string>Code Pro Bold LC.otf</string>
<string>Code Pro LC.otf</string>
<string>Montserrat-Bold.ttf</string>
<string>Montserrat-Italic.ttf</string>
<string>Montserrat-Medium.ttf</string>
<string>Montserrat-MediumItalic.ttf</string>
<string>Montserrat-Regular.ttf</string>
<string>Montserrat-SemiBold.ttf</string>