Quick Notes on Apple Event 2019

  • Apple Arcade
  • Apple Arcade $4.99 a month with a one month free trial
  • Apple TV+, available November 1st for $4.99/mo, free 1-year subscription with the purchase of a new device.
  • New 10.2” iPad
  • Announced the Apple Research app
  • Apple Watch Series 5
  • Always-on display on the Apple Watch Series 5!
  • iPhone 11
  • iPhone 11 has an ultra-wide camera, new UI in the Camera app for it
  • iPhone 11 camera has night mode
  • Slofies – Slomo Selfies
  • iPhone 11 starts at $699
  • iPhone 11 Pro & Pro Max
  • Super Retina XDR Display on the iPhone 11 Pro
  • iPhone 11 Pro battery lasts 4 hours longer than iPhone Xs, comes with fast charger in the box
  • Deep Fusion image processing system on the iPhone 11 Pro
  • iPhone 11 Pro available for pre-order Friday 5AM PDT, starts at $999

SwiftUI Tutorial – Creating and Combining Views

SwiftUI announced in WWDC 2019. It’s an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. In previous blog I have shared some references from apple documents.
Swift UI Logo
We will learn it by examples. First of all let’s start with simple UI.

Read more

Tutorial : Let's take quick dive in Grouped Notifications - iOS 12

With iOS 12 we can set the group of notifications
grouped notifications

Thread Identifier

Create notification content with threadIdentifier to create group of that notification. Group will be of the application or specific topic from an application.

Notification payload will be like this

Give meaningful name to thread identifier for specific purpose of group.

Summary of group

Simple Notification Group Summary

Hidden Previews Summary Customization

Notification Group Summary with Arguments

Notification Group Summary Argument

Notification Summary with Argument Count

Updated notification payload will be like this

Example with local notifications:

Setup user notifications in the application.

Fire local notifications and look into the thread identifier, summary and summary count…

Conclusion

I know that I haven’t described anything in detail. If I get time I will update this blog with details.

Happy Coding ?

If you have any questions, comments, suggestions or feedback then contact me on Twitter @ashishkakkad8.

Tips for update CocoaPods and your project libraries

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects.

CocoaPods Logo
CocoaPods Logo

CocoaPods is built with Ruby and is installable with the default Ruby available on OS X. We recommend you use the default ruby.

Update your system

Update your system by following command in terminal.

Above command will install/update rubygems.

Install CocoaPods

Install CocoaPods in your system by following command in terminal.

If you are getting errors above command then use following command.

Check CocoaPods Version

Update CocoaPods Repository

We have to update CocoaPods repository with latest pod updates by developers. Use following command to update CocoaPods repository:

It will take some time to update all sub repositories.

Update pod for your project

If you directly apply the command pod install then some time new pods will not be updated in your project. For that you have to remove that specific pod information from the pod file and you have to apply pod install command. It will remove pod from the project. After that again you have to add the pod information in the pod file. Again you have to apply pod install command to install new version of pod.
Follow the next steps:
1. Remove SomePod from the Podfile
2. Run pod install
pods will now remove SomePod from our project and from the Podfile.lock file.
3. Put back SomePod into the Podfile
4. Run pod install again
This time the latest version of our pod will be installed and saved in the Podfile.lock.
You can update single pod file as follows:

Remove all CocoaPods from a project

Install CocoaPods deintegrate and clean commands from terminal.

Now you have to apply both command to remove all CocoaPods from your project:

Happy Coding ?