Skip to content

Instantly share code, notes, and snippets.

View itjustcrashed's full-sized avatar
🙃
Existing

It Just Crashed itjustcrashed

🙃
Existing
View GitHub Profile
@itjustcrashed
itjustcrashed / openinmaps.codesnippet
Created August 9, 2024 23:11
Open in Apple Maps Xcode Snippet
<!--- Paste into ~/Library/Developer/Xcode/UserData/CodeSnippets --->
<!--- Created by @wannafedor4 aka @itjustcrashed --->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string>maps_url</string>
<key>IDECodeSnippetCompletionScopes</key>
@itjustcrashed
itjustcrashed / fetcher.swift
Last active September 8, 2024 03:17
MapKit icon fetcher
func markerIcon(for mapItem: MKMapItem) -> String {
let catagory = mapItem.pointOfInterestCategory
var icon = "mappin"
if catagory == .museum {
icon = "building.columns"
} else if catagory == .musicVenue {
icon = "music.microphone"
} else if catagory == .theater {
icon = "theatermasks"
} else if catagory == .library {