Skip to content

Instantly share code, notes, and snippets.

View rahulvyas's full-sized avatar
🏠
Working from home

Rahul Vyas rahulvyas

🏠
Working from home
View GitHub Profile
@leamars
leamars / LinkPresentation.swift
Created January 7, 2020 00:56
LinkPresentation SwiftUI
import SwiftUI
import LinkPresentation
struct TutorialPost: UIViewRepresentable {
typealias UIViewType = LPLinkView
var url: URL
func makeUIView(context: UIViewRepresentableContext<TutorialPost>) -> TutorialPost.UIViewType {
return LPLinkView(url: url)
@davepeck
davepeck / BinaryDataScanner.h
Created April 27, 2009 04:35
Two simple Objective-C classes that make it crazy easy to read data from sequential binary files.
//
// BinaryDataScanner.m
//
// Copyright 2009 Dave Peck <davepeck [at] davepeck [dot] org>. All rights reserved.
// http://davepeck.org/
//
// This class makes it quite a bit easier to read sequential binary files in Objective-C.
//
// This code is released under the BSD license. If you use it in your product, please
// let me know and, if possible, please put me in your credits.