ios

swift
import SwiftUI

struct AnimationExamplesView: View {
    @State private var isExpanded = false
    @State private var rotation: Double = 0
    @State private var scale: CGFloat = 1.0

SwiftUI animations and transitions

swift swiftui animations
by Sofia Martinez 2 tabs
swift
import UIKit

// MARK: - Custom Delegate Protocol
protocol PostCellDelegate: AnyObject {
    func postCell(_ cell: PostTableViewCell, didTapLike post: Post)
    func postCell(_ cell: PostTableViewCell, didTapComment post: Post)

UIKit delegates and protocols

swift uikit delegates
by Sofia Martinez 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
import AVFoundation
import AVKit

struct VideoPlayerView: View {
    let videoURL: URL

AVFoundation for media playback

swift avfoundation media
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 SwiftUI

struct AccessiblePostCard: View {
    let post: Post
    @State private var isLiked = false

Accessibility with VoiceOver support

swift swiftui accessibility
by Sofia Martinez 1 tab
swift
import SwiftUI
import MapKit
import CoreLocation

struct Location: Identifiable {
    let id = UUID()

MapKit integration for location features

swift mapkit location
by Sofia Martinez 1 tab
swift
import Foundation

enum APIError: Error, LocalizedError {
    case invalidURL
    case invalidResponse
    case statusCode(Int)

URLSession networking with async/await

swift networking async-await
by Sofia Martinez 1 tab