xml
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/nav_graph"
    app:startDestination="@id/postsFragment">

Navigation Component for app navigation

kotlin android navigation
by Alex Chen 3 tabs
kotlin
package com.example.myapp

import android.app.Application
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp

Dependency injection with Hilt

kotlin android hilt
by Alex Chen 3 tabs
kotlin
package com.example.myapp.data.remote

import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor

Retrofit for REST API networking

kotlin android retrofit
by Alex Chen 2 tabs
kotlin
package com.example.myapp.data.local

import android.content.Context
import androidx.room.*
import androidx.sqlite.db.SupportSQLiteDatabase
import kotlinx.coroutines.CoroutineScope

Room database for local persistence

kotlin android room
by Alex Chen 2 tabs
kotlin
package com.example.myapp.ui.detail

import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel

MVVM architecture with ViewModel and LiveData

kotlin android mvvm
by Alex Chen 1 tab
kotlin
package com.example.myapp.data

import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*
import retrofit2.http.GET
import retrofit2.http.POST

Kotlin coroutines for async operations

kotlin coroutines async
by Alex Chen 2 tabs
kotlin
package com.example.myapp

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.*

Jetpack Compose declarative UI fundamentals

kotlin android jetpack-compose
by Alex Chen 1 tab
swift
import AuthenticationServices
import CryptoKit

class SignInWithAppleManager: NSObject, ObservableObject {
    @Published var isSignedIn = false
    @Published var userID: String?

Sign in with Apple authentication

swift sign-in-apple authentication
by Sofia Martinez 1 tab
swift
import SwiftUI

// MARK: - Semantic Colors in SwiftUI
struct AdaptiveColorsView: View {
    var body: some View {
        VStack(spacing: 20) {

Dark mode support and adaptive colors

swift dark-mode colors
by Sofia Martinez 1 tab
swift
import UIKit

class HapticFeedbackManager {
    static let shared = HapticFeedbackManager()

    private let impactLight = UIImpactFeedbackGenerator(style: .light)

Haptic feedback with UIFeedbackGenerator

swift haptics feedback
by Sofia Martinez 1 tab
swift
import UserNotifications
import CoreLocation

class LocalNotificationManager {
    static let shared = LocalNotificationManager()

Local notifications scheduling

swift notifications local
by Sofia Martinez 1 tab
swift
import UIKit
import WebKit

class WebViewController: UIViewController {
    private var webView: WKWebView!
    private var progressView: UIProgressView!

WKWebView for web content display

swift wkwebview webkit
by Sofia Martinez 1 tab