Skip to content

Instantly share code, notes, and snippets.

View haporter's full-sized avatar

Andrew Porter haporter

  • Salt Lake City, UT
View GitHub Profile
@beader
beader / InfiniteScrollChart.swift
Last active August 28, 2024 18:16
Infinite Scrollable Bar Chart using Swift Charts
//
// InfiniteScrollChart.swift
// ChartsGallery
//
// Created by beader on 2022/11/3.
//
import SwiftUI
import Charts
@Gurdeep0602
Gurdeep0602 / AppStoryboard.swift
Last active April 2, 2024 09:54
AppStoryboard enumeration
//
// AppStoryboards.swift
// AppStoryboards
//
// Created by Gurdeep on 15/12/16.
// Copyright © 2016 Gurdeep. All rights reserved.
//
import Foundation
import UIKit
@calebhicks
calebhicks / Stack.swift
Last active June 22, 2018 16:29
A simple Core Data written in Swift. Inspired by the fantastic Core Data book by Florian Kugler and Daniel Eggert at https://www.objc.io/books/core-data/
//
// Stack.swift
//
import Foundation
import CoreData
class Stack {
static let sharedStack = Stack()
@bwhiteley
bwhiteley / gist:049e4bede49e71a6d2e2
Last active March 17, 2024 13:10
Initialize Swift subclass of UIView, designed in .xib
// Create CustomView.xib, set File's Owner to CustomView.
// Link the top level view in the XIB to the contentView outlet.
class CustomView : UIView {
@IBOutlet private var contentView:UIView?
// other outlets
override init(frame: CGRect) { // for using CustomView in code
super.init(frame: frame)
self.commonInit()