Skip to content

Instantly share code, notes, and snippets.

View nkalvi's full-sized avatar

nkalvi

  • MI, USA
  • 09:57 (UTC -05:00)
View GitHub Profile
@nkalvi
nkalvi / NavigationSplitViewExample.swift
Last active November 7, 2024 01:49 — forked from Dimillian/NavigationSplitViewExample.swift
An example on how to use the new NavigationSplitView on iPad with global navigation - updated to work by following "Bringing robust navigation structure to your SwiftUI app"
// 2024-11-06: Simple test based on "Bringing robust navigation structure to your SwiftUI app"
// https://developer.apple.com/documentation/swiftui/bringing_robust_navigation_structure_to_your_swiftui_app
// Xcode Version 16.1, iOS 17+
// Opens to a sheet first instead of NavigationSplitView
import SwiftUI
@main
struct TestSplitViewApp: App {
@nkalvi
nkalvi / 0_reuse_code.js
Created November 18, 2016 05:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console