Menu

Skip to content
  • Home
  • AppStore
  • PlayStore
  • Portfolio
Youtube Twitter Home LinkedIn GitHub Stack Overflow

while (true) { }

notes from a developer, tutorials, how-to, ideas

Month: June 2018

25 June 2018 by Alberto Pasca on generic

Swift – Use generics [T] with closures

Let’s make an example to understand better the scope of this tutorial.

You want to:

  • increment all numbers in array by 1
  • double all numbers in array
  • check if the numbers in array are even or odd
  • multiply all numbers in array
  • more and more…

How many functions should you create to do this?

Read More

 
15 June 2018 by Alberto Pasca on generic

XCode – Add a file in project at build time

Imagine that you need to add a file in your XCode project the first time that you build the app.

For instance, you have a configuration file, in Swift, that you want to compile and embed in your app (instead of using a PLIST file that is in CLEAR…) during the build phase and of course use in your project.

Read More

 
14 June 2018 by Alberto Pasca on generic

HTTP Status codes

 
11 June 2018 by Alberto Pasca on generic

[Swift] Get devices model range

Here a simple and easy memo for getting the iPhones devices models range.

Read More

 
8 June 2018 by Alberto Pasca on generic

Swift – Calculate Levenshtein distance

Ciao,

here a conversion on an old tutorial in Swift about the Levenshtein distance of two strings.

Read More
 
5 June 2018 by Alberto Pasca on generic

XCode ‐ Podfile with categories and multiple targets

Welcome back,

what I want to share is an ordered and readable Podfile.

The Podfile is a specification that describes the dependencies of the targets of one or more Xcode projects.

Read More

 

Recent Posts

  • Skip Pay-to-Read (AdBlock) Banner using Safari
  • Schedipedia🇮🇹 – Apre lo shop online!
  • Ma non dormi mai? – Behind Schedipedia
  • Schedipedia is now live!
  • Add a custom view on the Status Bar in macOS with SwiftUI
  • macOS Forensis – Analyze file timestamps in deep
  • Simplifying Data Persistence with Property Wrappers in Swift
  • File Encryption and Decryption in Swift using AES Algorithm
  • Unlocking the Power of AWS IoT SDK: use MQTT with GPS on iOS
  • Swift – Simple full screen loader
  • macOS – Disable microphone while typing
  • iOS – Secure app sensitive information
  • DIY: Hack Weward for iOS
  • Swift – Circular button bubbles with gravity
  • Swift – Have fun with GravityBehavior and DynamicAnimator

Archives

  • May 2025
  • January 2025
  • June 2024
  • February 2024
  • September 2023
  • August 2023
  • July 2023
  • August 2022
  • April 2022
  • March 2022
  • November 2021
  • August 2021
  • May 2021
  • April 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • December 2019
  • November 2019
  • August 2019
  • July 2019
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • February 2018
  • June 2017
  • May 2017
  • April 2017
  • February 2017
  • January 2017
  • November 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • November 2015
  • September 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • August 2014
  • July 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • December 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
 
Subscribe!
Copyright © 2008 - 2023 Alberto Pasca, albertopasca.it.