Skip to content

Instantly share code, notes, and snippets.

View crazymanish's full-sized avatar
🎯
Focusing

Manish Rathi crazymanish

🎯
Focusing
View GitHub Profile
@crazymanish
crazymanish / sample.swift
Created September 14, 2024 14:15 — forked from fahied/sample.swift
SwiftUI View Inspection
import SwiftUI
struct SizeKey: PreferenceKey {
static func reduce(value: inout CGSize?, nextValue: () -> CGSize?) {
value = value ?? nextValue()
}
}
struct ContentView: View {
@State var width: CGFloat? = nil
var body: some View {
//
// CacheAsyncImage.swift
//
// Created by Costantino Pistagna on 08/02/23.
//
import SwiftUI
struct CacheAsyncImage<Content, Content2>: View where Content: View, Content2: View {
private let url: URL?
@crazymanish
crazymanish / goals_template.md
Created March 7, 2023 03:20 — forked from dearshrewdwit/goals_template.md
Goal tree template

Goal tree template

This is based on feedback and learning from developers, coaches, hiring partners and the careers team. We expect you to modify it to suit your own dreams.

- [ ] I make software
    - [ ] I can build web apps
    - [ ] I can build front-end apps
    - [ ] I can build with objects