Skip to content

Instantly share code, notes, and snippets.

View mlm249's full-sized avatar
Ⓜ️

Mat Mullen mlm249

Ⓜ️
View GitHub Profile
@jfuellert
jfuellert / ScrollableView.swift
Last active April 11, 2024 17:57
A scrollable SwiftUI view, UIScrollView wrapper. ScrollableView lets you read and write content offsets for scrollview in SwiftUI, with and without animations.
import SwiftUI
struct ScrollableView<Content: View>: UIViewControllerRepresentable, Equatable {
// MARK: - Coordinator
final class Coordinator: NSObject, UIScrollViewDelegate {
// MARK: - Properties
private let scrollView: UIScrollView
var offset: Binding<CGPoint>
@daviddulak
daviddulak / Find Unused Images for Projects
Last active October 25, 2017 19:25
This searches for unused images in a project
var TextSearch = require('rx-text-search');
var walk = require('walk');
var colors = require('colors');
var Promise = require('bluebird');
// *************************************************
// Required Node Packages
//