iOS Info.plist Usage Description

Check out this developer.apple.com link for the full list of property list key references. Full List: Apple Music:

Bluetooth:

Calendar:

Camera:

Contacts:

FaceID:

Health Share:

Health Update:

Home Kit:

Location:

Location (Always):

Location (When in use):

Microphone:

Motion (Accelerometer):

NFC (Near-field communication):

Photo Library: […]

person shubham sharmaaccess_time July 19, 2019launch Read More

Swift Date format refrence

Characters Example Description Year y 2008 Year, no padding yy 08 Year, two digits (padding with a zero if necessary) yyyy 2008 Year, minimum of four digits (padding with zeros if necessary) Quarter Q 4 The quarter of the year. Use QQ if you want zero padding. QQQ Q4 Quarter including “Q” QQQQ 4th quarter […]

person shubham sharmaaccess_time July 4, 2019launch Read More

iOS Date picker view

 

person shubham sharmaaccess_time June 11, 2019launch Read More

MAC Os / iOS check network is connected or not

 

person shubham sharmaaccess_time May 21, 2019launch Read More

Swift on OS X. How to handle global mouse events?

You are correct about using addGlobalMonitorForEventsMatchingMask:handler: A simple example might look something like this: AppDelegate.swift

  GlobalEventMonitor.swift

 

person shubham sharmaaccess_time April 17, 2019launch Read More

Drag and Drop using swift 4 on mac OS

 

person shubham sharmaaccess_time April 16, 2019launch Read More

Track mouse movement Mac

  What going on here is. Simple toggle action to flip between playing/not-playing state and reflect that in the color state. Adds a NSTrackingArea to the view. The owner is this view controller so it will receive the mouseMoved: event. The option .mouseMoved is required to set this up. Removes the tracking area from the view when the slide show […]

person shubham sharmaaccess_time April 8, 2019launch Read More

Swift Multi-Threading

1- The Main Queue 2- The Global Queue: 3- Custom Queues:

 highest priority  1- userInteractive : Work is virtually instantaneous. Similar to main thread. 2- userInitiated : Work is nearly instantaneous, such as a few seconds or less. 3- default: don’t use it usually , the type will be inferred by the system 4- utility: Work takes a few seconds to a few […]

person shubham sharmaaccess_time April 6, 2019launch Read More

Difference between Structure vs class in swift

Here’s an example with a class. Note how when the name is changed, the instance referenced by both variables is updated. Bob is now Sue, everywhere that Bob was ever referenced.

  And now with a struct we see that the values are copied and each variable keeps it’s own set of values. When we set the name to Sue, the Bob struct in aStruct does not […]

person shubham sharmaaccess_time March 26, 2019launch Read More

Swift: Dictionary And Json operations

If you need to convert JSON string into a dictionary or a dictionary into JSON String

 

person shubham sharmaaccess_time March 18, 2019launch Read More