Skip to content

Instantly share code, notes, and snippets.

//
// AppIconView.swift
// This view represents a customizable app icon using SwiftUI.
//
// To replace `AppIconView` with your own design:
// - Modify the contents of the `body` to implement your desired app icon layout.
// - You can use any combination of shapes, colors, images, and text.
// - Preview the icon using `AppIconPreview` and save it when you're satisfied.
//
@gerdemb
gerdemb / HintKit.swift
Last active June 27, 2025 09:18
Popover "Hints" in SwiftUI (Inspired by TipKit)
/*
HintKit.swift
INTRODUCTION
This is an implementation of popover "Hints" inspired by Apple's TipKit framework. However, it is designed to remove
the "magic" and make the presentation of hints explicit via an `isPresented` binding. This explicit binding is useful
for displaying hints in sequence, showing hints immediately in response to user actions, or adding custom constraints
to control when a hint should be displayed.