ios

swift
import SwiftUI

struct ContentView: View {
    @State private var username = ""
    @State private var isLoggedIn = false
    @StateObject private var viewModel = LoginViewModel()

SwiftUI declarative UI with state management

swift swiftui ios
by Sofia Martinez 2 tabs
swift
import SwiftUI

struct CardModifier: ViewModifier {
    var backgroundColor: Color = .white
    var cornerRadius: CGFloat = 12
    var shadowRadius: CGFloat = 5

Custom SwiftUI view modifiers for reusability

swift swiftui ios
by Sofia Martinez 2 tabs
swift
import Foundation
import UIKit

class ImageProcessor {
    // Background processing with main thread updates
    func processImage(_ image: UIImage, completion: @escaping (UIImage?) -> Void) {

Grand Central Dispatch for concurrency

swift gcd concurrency
by Sofia Martinez 1 tab
swift
import SwiftUI

enum Route: Hashable {
    case postDetail(id: Int)
    case userProfile(id: Int)
    case settings

Navigation patterns with NavigationStack

swift swiftui navigation
by Sofia Martinez 2 tabs
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
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 WidgetKit
import SwiftUI

struct SimpleEntry: TimelineEntry {
    let date: Date
    let count: Int

iOS app extensions - widgets and share

swift ios extensions
by Sofia Martinez 2 tabs
ruby
# Fastlane Fastfile for automated deployment
default_platform(:ios)

platform :ios do
  desc "Push a new beta build to TestFlight"
  lane :beta do

App Store submission and TestFlight beta testing

ios app-store testflight
by Sofia Martinez 2 tabs
swift
import CloudKit
import Combine

class CloudKitManager: ObservableObject {
    static let shared = CloudKitManager()

CloudKit for iCloud sync

swift cloudkit icloud
by Sofia Martinez 1 tab
swift
import UIKit

class ProfileViewController: UIViewController {
    private let profileImageView: UIImageView = {
        let imageView = UIImageView()
        imageView.contentMode = .scaleAspectFill

UIKit Auto Layout programmatically

swift uikit auto-layout
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 UserNotifications
import UIKit

class NotificationManager: NSObject {
    static let shared = NotificationManager()

Push notifications with UserNotifications framework

swift ios notifications
by Sofia Martinez 2 tabs