open-menu closeme
Home
Development icon
Apple Dev Android Dev Firebase Software Biz
About icon
Profile Portfolio Résumé
linkedin mastodon github rss
  • Using DispatchGroup in SwiftUI

    calendar Jan 21, 2021 · 10 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    This post covers how to use the Grand Central Dispatch's DispatchGroup object to coordinate separate web requests so that UI updates can be completed at the same time, even when asynchronous requests aren't guaranteed to return in a predictable order. This post is primarily a tutorial of using GCD's DispatchGroup, and …


    Read More
  • Sorting collections of custom types using higher order functions in Swift

    calendar Jan 20, 2021 · 7 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    This post is a cheat sheet for sorting sequences of custom objects using Swift's sort operators. While sorting simple types (String, Int) are covered well in Apple's documentation on the subject and in many other places, I've focused below on sorting custom object types, which is more relevant to my daily work. The …


    Read More
  • Swift high-order map usage with custom types

    calendar Jan 20, 2021 · 8 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    What is Map? Map is a term that has roots in other technologies (such as Hadoop big data processing, which is where I've used it before 🙂). Map means to iterate over a sequence of objects, and perform some operation on each one, returning a new sequence of objects as the final output. The operation performed is …


    Read More
  • Swift high-order reduce usage with custom types

    calendar Jan 20, 2021 · 7 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    What is Reduce? Map is a general term that has roots in other technologies (such as Hadoop big data processing, which is where I've used it before 🙂). Reduce means to iterate over a sequence of objects, and perform some operation on each one, returning some summary value computed from the entire set. Map and Reduce are …


    Read More
  • Capture a UIView as image using Swift

    calendar Jan 4, 2021 · 3 min read · iOS UIKit  ·
    Share on: twitter facebook linkedin copy

    This technique demonstrates the simple but useful task of capturing the contents of a UIView as a JPEG image data object. The resulting Data object can be written to a .jpg file, uploaded to a web service, or sent as an e-mail attachment (as is covered in this related post). Application This technique is relatively …


    Read More
  • Sending Email with Image Attachments in Swift

    calendar Jan 4, 2021 · 4 min read · iOS UIKit  ·
    Share on: twitter facebook linkedin copy

    Sending content from an iOS application to external sources like email is a common requirement. This quick post summarizes the steps to implement this feature. Aa an added twist, the project used for this technique post includes capturing an image from one of the app's UIViews. Below is a video demo of the application …


    Read More
  • Drawing with Core Graphics using Swift

    calendar Jan 3, 2021 · 4 min read · UIKit iOS  ·
    Share on: twitter facebook linkedin copy

    This techique illustrates a mid-level technique: impelmenting custom Core Graphics drawing in a UIView. Often a custom effect in a View can be implemented by adding subviews and positioning them with constraints. But other times, you just need to take over and draw what you need. In those cases--CoreGraphics to the …


    Read More
  • iOS Image Caching for UIKit Apps

    calendar Dec 28, 2020 · 7 min read · iOS UIKi  ·
    Share on: twitter facebook linkedin copy

    The most common approach to displaying images in an iOS application is to include images in asset catalogs compiled into and shipped with the app. For images that are provided at design time and never change, this is nearly always the best approach. There are some scenarios where bundling images isn't possible or …


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • »
    • »»

Categories

APPLE 23 PROGRAMMING 13 FIREBASE 4 ANDROID 3 STRATEGY 2

Series

COMPARATIVE-SYNTAX 4

Tags

SWIFT 16 IOS 12 KOTLIN 10 JAVASCRIPT 9 UIKIT 5 SWIFTUI 4 BACKEND 3 ARDUINO 2 BLUETOOTH 2 CLOUD-FUNCTION 2 ESP32 2 JETPACK-COMPOSE 2 APP-STORE 1 DATA-VIZ 1
All Tags
APP-STORE1 ARDUINO2 BACKEND3 BLUETOOTH2 CLOUD-FUNCTION2 DATA-VIZ1 ESP322 GOOGLE-CLOUD1 IN-APP-PAYMENTS1 IOS12 JAVASCRIPT9 JETPACK-COMPOSE2 KOTLIN10 MACOS1 SWIFT16 SWIFTUI4 UIKI1 UIKIT5 XCODE1
[A~Z][0~9]

Recent Posts

  • Awaiting Kotlin suspend functions in serial, parallel and lazy startup modes
  • Filtering Collections in Swift, Kotlin and JavaScript
  • REPL Tool Reference
  • Android Jetpack Compose View Model Eventing Architecture
  • Using Firebase Auth claims with Swift, Kotlin and JavaScript
  • Simple For Loop in Swift, Kotlin and JavaScript
  • URL Encoding GET parameters in Swift
  • Async/Await Syntax in Swift, Kotlin and JavaScript

Copyright  Rob Kerr. All Rights Reserved

to-top