Sign up for our Awesome weekly Newsletter.

 

  • Hand-curated with the best of the week iOS development News, Tools, Code snippets, Techniques, Productivity hacks, Tutorials, and Videos.
  • One email keeps you in the know
  • Delivered straight to your inbox every Friday morning
  • Completely FREE

 


View previous campaigns.

 

iOS 11: Location Permissions and avoiding the Blue Bar of Shame!

Apple has always been known to be a flag bearer for user privacy and the evidence for it is now even clearer with iOS 11. With iOS 11 if an app collects location data in the background, then a big ugly flashing blue bar shows up over the status bar.

If you have an app or planning to develop one that continuously scans user location, then check out the article linked below that details how to avoid it.

 

Source: Location Permissions in iOS 11 and avoiding the Blue Bar of Shame

Productivity: Why striving for perfection might be holding you back as a newbie developer!

Great article that will change the way you think about completing your projects. Check out some quotes from the article:

Done is better than perfect.

My advice is that when you’re learning, build something until it works correctly and looks decent, and then forget it and move on. Don’t look for perfection.

Source: Why striving for perfection might be holding you back as a newbie web developer

Startups: How Two Brothers Turned Seven Lines of Code Into a $9.2 Billion Startup!

Business Week published a great inspiring story about 2 brothers from rural Ireland who created a startup called ‘Stripe’ back in 2010 that now handles tens of billions of dollars in internet transactions causing their company to be valued at 9.2 billion dollars and making them the worlds youngest billionaires at the age 26 & 28.

Read on to find out more at the article linked below:

Source: How Two Brothers Turned Seven Lines of Code Into a $9.2 Billion Startup – Bloomberg

Xcode Tip: Customizing the file header comment and other text macros!

A little-known fact about a feature introduced with Xcode 9 is the ability to customize the file header. Every source file by default has this header component and normally we don’t even gaze at it because we know it mostly contains static content with not much useful data to look at. But things are changing with Xcode 9, you can now customize the file header using a new concept called text macros which you can configure using a plist file. Read on at the article linked below to find out more.

Source: Customizing the file header comment and other text macros in Xcode 9 – Ole Begemann

Demystifying iOS Provisioning: Profiles, Certificates & XCode!

Provisioning is the process by which you can get your apps outside of the iOS simulator and move them onto production devices through direct installation or App Store distribution. Provisioning is an art and for new developers, this process can be a bit overwhelming.

Check out this 2 part series of articles which really dig deep into the concepts and provide you with step by step instructions to get started.

Source: Demystifying iOS Provisioning Part 2: Creating and assigning certificates and profiles

Refactoring: How to deal with technical debt and save your sanity!

Refactoring code may not have any innate business value ( an exception being small performance optimization) and your business won’t immediately get better once refactoring is done. But refactoring is an essential part of software development and frequent refactoring is what keeps the code well oiled to prevent it from going obsolete.

Also, if you are working as part of a team and your team diligently conducts code reviews, then just the fact that your code will be assessed sends signals to the brain making you extra aware to maintain your code clean and keep it well optimized.

An ordered and clean environment, one that is maintained, sends the signal that the area is monitored and that criminal behavior is not tolerated. Conversely, a disordered environment, one that is not maintained (broken windows, graffiti, excessive litter), sends the signal that the area is not monitored and that criminal behavior has little risk of detection.

Check out this article linked below to find out how refactoring can greatly reduce your technical debt.

Source: How to deal with technical debt and save your sanity

NSObject: The Inheritance Curse!

Here is an article that provides a whimsical take on the evil that is NSObject. If you use classes that inherit from UIKit classes then you directly or indirectly inherit from NSObject.

There are ways to stop this inheritance madness in your classes by marking them as final so it cannot be subclassed. It allows some compiler optimizations, and also makes the code more consistent by removing features that can be achieved in a more Swifty way like code reuse with protocol extensions, generics or composition and polymorphism with protocols.

Read on at the link below to find out more tips:

Source: The Inheritance Curse – Swift Programming – Medium

Design Tools: Prototype & Showoff your app using this tool – Figma!

Figma is a popular design prototyping tool which has recently evolved from v1 to v2 with the biggest improvement being the ability to prototype and present the design all from one interface. Figma also comes with a new developer handoff feature. Developers can now have a view-only access to files giving them the ability to see things like color codes, the spacing between elements and CSS details making it quicker to implement the design through code/storyboard.

In Figma, the prototype is a living document rather than a dead artifact.

Give Figma 2 a try at the link below.

Source: Figma 2.0: Now with Prototyping and Developer Handoff

Dev Tools: Introducing Paralayout – An easy to use alternative to Autolayout!

Apple has made tremendous improvements to Autolayout (Apple’s constraint-based system for specifying UI) since the last few years. While technically impressive, in practice it’s more difficult and takes longer to implement especially if you have to modify and animate the layout dynamically or if you want to performance tune the UI. Square’s Cash iOS team have embraced a different philosophy that prioritizes development speed, correctness, readability, maintainability, and performance and they call it Paralayout, a 100% Swift open source library to programmatically code layout rules.

Read on at the link below to find out more.

Source: Introducing Paralayout – Square Corner Blog – Medium

Tutorial: The Complete Understanding of Swift Delegate and Data Source!

If you are new to Swift development, understanding the delegation pattern can be a difficult topic to wrap your head around. Delegate and Datasource patterns are used quite liberally in Swift especially if you are using components like TableViews and CollectionViews and hence it’s imperative that you master the topic. 

Check out the tutorial linked below to get you started on the subject:

Source: The Complete Understanding of Swift Delegate and Data Source