• Home
  • Author
  • Privacy Policy & Terms

Swift & Small Pieces

ARTICLES ABOUT SWIFT , OBJECTIVE-C, ALGORITHMS and Cryptography BY THOMAS KAUSCH

Get in Contact

Menu Close
  • Home
  • Author
  • Privacy Policy & Terms

Types and meta type in Swift

April 11, 2021tomkausch Leave a Comment

Knowing the type and meta-type in Swift is not as common as in Smalltalk or Objective-C. Where in objective-c, you can instantiate an object out of a class name or modify classes at runtime this is not possible in Swift.… Continue Reading →

iOS, Languages, Swift Meta Type, Self versus self, swift, Type

How to handle iOS massive ViewController syndrome?

March 15, 2021tomkausch

The Cocoa frameworks and the Model-View-Controller pattern go hand in hand. A typical iOS application, for example, is composed of models, views, and view controllers. The model and view layers are glued together by the controllers of the application. Those… Continue Reading →

iOS, Swift Data Source, Design, Patterns, UIViewController

Encoding & Decoding dates in Swift

March 13, 2021tomkausch Leave a Comment

In this article, you’ll learn all about encoding and decoding Dates in Swift to JSON, exploring the basics and advanced topics like custom dates and custom encoding. Overview Many programming tasks involve sending data over a network connection, saving data… Continue Reading →

Encoding & Decoding Date, Swift Date, Decode, Encode, ISO-8601

iOS Jailbreak detection is useless

March 10, 2021tomkausch Leave a Comment

When developing financial apps you probably get the requirement to detect jailbroken devices. The reason for detection is to either disable some or most of the app’s functionalities due to security concerns that come from a jailbroken system. This article… Continue Reading →

iOS, Security, Uncategorized

Python BasicGym

March 1, 2021tomkausch Leave a Comment

Here are some problems that require Python basic knowledge about Lists, Strings and operators. Digits Multiplication You are given a positive integer. Your function should calculate the product of the digits excluding any zeroes. For example: The number given is 123405. The result… Continue Reading →

Pyhthon

Swift “Alphabet Cipher” implementation.

March 1, 2021tomkausch Leave a Comment

In 1868 Lewis Carroll published “The Alphabet-Cipher”. They say he did this in a kids magazine ?. While Carroll called his cipher “unbreakable” we know it is not. However it is still interesting to implement such a cipher as a… Continue Reading →

Code Blocks, Swift

Reversed String

September 6, 2020tomkausch Leave a Comment

Reversing a string in Swift is done by using the reversed() method on its characters, then creating a new string out of the result. Here’s the code: Reverse a String without using reversed built-in function in Swift can be done using Swift higher order… Continue Reading →

Algorithms, Code Blocks

How to calculate the ROT13 of string in Swift

April 2, 2019tomkausch Leave a Comment

ROT13 is a simple algorithm that shifts letters in a string forward 13 places. It’s not hard to write a rot13() function, but it is a little harder to wrap it up neatly so you avoid global variables while still making… Continue Reading →

iOS, Swift

Usage of Swift Type aliases

February 2, 2019tomkausch Leave a Comment

Whether or not  type aliases are syntactic sugar or provide more code clarity,  is a common source of debate among developers. While being able to write code in a more concise manner, it can also sometimes make the result harder to read… Continue Reading →

Swift

Effective XCode UI Testing

July 30, 2017tomkausch Leave a Comment

UI testing is a great way to ensure that your UI interactions keep working as you’re adding new features or refactoring your app’s codebase –  it keeps your app functional. Writing and running UI tests is kind of different from… Continue Reading →

Effective Objective-C, iOS, Swift, XCode

Post navigation

← Older Articles
Newer Articles →

Thomas Kausch

Recent Posts

  • REST Client Code Generation in Kotlin Multiplatform
  • Sunday afternoon Problem: Lazy Sequences as a Dynamic Programming Primitive in Kotlin
  • How Kotlin’s Inline Functions Make Lambdas First-Class Citizens for Functional Programming
  • Koog
  • Kotlin Multiplatform (KMP) and xcframework: Sharing Logic with iOS Without the Pain

Recent Comments

    Categories

    Algorithms Augmented Reality Code Blocks Concurrency Dev Tools Effective Objective-C Encoding & Decoding Date iOS Languages Objective-C Pyhthon Security Swift Uncategorized Virtual Reality XCode
    © 2026 Swift & Small Pieces. All rights reserved.
    Fashionista by aThemes