-
MailKit Converting a InternetAddressList to a MailAddressCollection
If you need to work with email in a .NET environment I highly recommend checking out MailKit by Jeffrey Stedfast. MailKit provides a higher level abstraction working across the different email protocols, which is a massive time saver. MailKit has its own classes for handling Email Addresses. Most notability the MailboxAddress… Read more ⇢
-
Swift Trimming Trailing Punctuation
Lately, I’ve been working on a project that requires some basic MLP text processing to be performed on device. A component of our text processing involved removing any trailing punctuation, no matter the language. I’ve found the below String Extension is a good balance between effectiveness, performance, and readability. Especially… Read more ⇢
-
Freeing the space used by Xcode with XcodeCleaner
With every release of Xcode it seems to eat more and more space. I was thrilled to find the XcodeCleaner project from Baye on Github. This is a great project that allows you to tailor the space Xcode uses. I’ve been able to free up an easy 12GB without any… Read more ⇢
-
Sentiment Analysis using Swift
Lately I’ve been working on several projects using conversational UI or “Bot” interactions. A key interaction pattern when designing “Bots” you must listen to both the intent and sentiment of the text the user is providing. Through the use of sentiment analysis you can help determine the mood of the… Read more ⇢
-
Fastlane: Solving the WatchKit CFBundleVersion matching problem
Fastlane is one of the tools that a developer shouldn’t live without. At this point it must have saved me hundreds of hours. As great as fastlane is out of the box it has a few rough edges when you introduce a WatchKit app. Recently I added a WatchKit app into… Read more ⇢
-
Thinking about Memory: Converting UIImage to Data in Swift
How often do you convert a UIImage into a Data object? Seems like a relatively straight forward task, just use UIImageJPEGRepresentation and your done. After doing this I started seeing memory spikes and leaks appear which got me thinking on how I can better profile different options for performing this… Read more ⇢
-
Stopping Tap Gesture from bubbling to child controls
The default behavior is for your tap or other gestures to bubble up to their child controls. This avoids the need to add a recognizer on all of your child controls. But this isn’t always the behavior you are looking for. For example imagine you create the below modal view.… Read more ⇢
-
Swift excluding files from iCloud backup
Having your device automatically back-up to iCloud is one of the better services Apple provides. Although not new, iCloud (introduced in June of 2011) back-up is one of the better services Apple has rolled out. If used right this removes a whole class of end user data lose fears. However… Read more ⇢
-
Forcing iCloud logout on your Mac
I think everyone, at least developers, have at least one iCloud account which is linked to an old email address. To address this I’ve been migrating mine over to another domain. The process is extremely easy, just visit appleid.apple.com and change your Apple ID email address. Although easy, this can… Read more ⇢
