Gate Number

Gate Number

by dockui

A clean airport boarding widget showing gate E16, an outbound flight icon, and a 13-minute gate-close countdown.

Platform
SwiftUI
Code
Native Swift
Format
Component
Access
Free

Code Snippet


import SwiftUI

struct GateNumberView: View {
    var body: some View {
        VStack(spacing: 0) {
            VStack(alignment: .leading, spacing: 0) {
                Image(systemName: "arrow.up.forward")
                .frame(maxWidth: .infinity)
                .font(.title)

                Text("E16")
                .font(.system(size: 36, weight: .medium))

                VStack(alignment: .leading, spacing: 6) {
                    Text("Boarding")
                    .font(.system(.body, weight: .medium))

                    Text("Gate closes in 13 minutes")
                    .font(.caption)
                }
            }
            .padding(.horizontal, 12)
        }
        .ignoresSafeArea(.container, edges: .top)
        #if os(iOS)
        .statusBarHidden(false)
        #endif
        .preferredColorScheme(.light)
    }
}

#Preview {
    GateNumberView()
}

More Templates

Similar Blogs

View All Articles
How to Translate Xcode String Catalogs with AI

How to Translate Xcode String Catalogs with AI

Learn how to efficiently translate Xcode string catalogs using AI fast, streamlining localization for your iOS and SwiftUI applications.

by dockui
May 4
How to optimize your SwiftUI app in 2026

How to optimize your SwiftUI app in 2026

Discover top strategies to optimize your SwiftUI app in 2026, enhancing performance, responsiveness, and maintainability with modern concurrency.

by dockui
Apr 29
SwiftUI: iOS Confirmation Alert (Confirm + Cancel)

SwiftUI: iOS Confirmation Alert (Confirm + Cancel)

SwiftUI iOS confirmation alert with Confirm and Cancel buttons. Beginners guide to building safe actions, destructive deletes, and commit dialogs.

by dockui
Nov 11
SwiftUI: IOS Haptic Feedback Guide 2026

SwiftUI: IOS Haptic Feedback Guide 2026

Add click to vibrate haptic feedback in SwiftUI. Full guide to UIImpactFeedbackgenerator, success, error, selection, and tap vibration patterns with code.

by dockui
Nov 11

Code copied to clipboard!