Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

915 B
Raw Blame
import SwiftUI
import WidgetKit

struct HedgehogWidget: Widget {
    let kind = "HedgehogWidget"

    var body: some WidgetConfiguration {
        StaticConfiguration(kind: kind, provider: HedgehogTimelineProvider()) { entry in
            HedgehogView(entry: entry)
                .containerBackground(for: .widget) {
                    GeometryReader { geometry in
                        Image("hoglet_garden")
                            .resizable()
                            .scaledToFill()
                            .frame(width: geometry.size.width, height: geometry.size.height)
                            .clipped()
                    }
                }
        }
        .configurationDisplayName("Hedgehog")
        .description("Your own little garden hedgehog. Tap to change its character.")
        .supportedFamilies([.systemSmall, .systemMedium])
        .contentMarginsDisabled()
    }
}