How to tweak the Volume HUD in iOS?

iOS volume change HUD is a big freaking non interactable rounded rectangle pop up. This obstructs the UI for good 2-3 seconds. This irritates me. So if there are any media apps to be developed use this technique to customize volume change feedback UI.

Now if you are developing an app and need very less irritated users or frustrated users, then never ever use feedback HUDs right in the center of the screen and that too for more than 2-3 seconds.

Now one default such HUD is Volume HUD which comes over all the applications. But good thing is you can customize it.

You need to add just 3 things in your view controller:

  1. Apple’s MediaPlayer framework
  2. A dummy instance of MPVolumeViewadded as a subview of your view
  3. An observer to AVSystemController_AudioVolumeNotificationParameterThe below linked youtube video guides you on how to implment this in your project:

The source code to the sample mentioned in the video is available on Github:

Share your feedback in here or below the youtube video.

Happy coding 😉

Damodar Shenoy's DEV Profile

Open Terminal from Xcode

I love Xcode as an IDE for macOS and iOS development. But it has its own set of limitations. One feature I miss a lot is Opening a Terminal window from the Xcode into the same directory of the project. This will save lots of time.

Every time you want to run a git command or cocoapods or say any xcode build command – Opening a Terminal manually and changing the directory to the project directory takes at the least 30 seconds to a minute. Now what if I say you can do this

Now, What if I say you can open a Terminal window and get to the project directory  in 1 second or say with a shortcut key?

YES! One shortcut.

This is how you do it. It’s a one time setup.

1. Create a 2 line shell script and give the file execute permission.
2. Go to Xcode Preferences.
3. Add a Behavior in Xcode. Name it and give a shortcut key.
4. On the right side details pane check the Run option.
5. From the adjacent drop-down menu choose the script you just saved in step 1.

Here’s the video on how to do it.

open -a Terminal "`pwd`"

Command to give execute permission:
chmod +x /path/to/the/

If you are lazy like me here’s the gist, download and use it:

Hope this is helpful.

Happy coding 😉

inspiration courtesy: The in-built Terminal of Visual Studio Code by Microsoft

Damodar Shenoy's DEV Profile


What is blogging?

Blogging is just like maintaining a diary online. Its just logging/recording things you want to just write down and read later or/and also if you like then sharing it. Its similar to writing in your own diary, you get to theme and customize your articles, attach pictures.

The word Blog came from the truncated word of weblog. Blog contains articles and pages. Post is a term used to describe each article.

Types of blogging:

  • Personal blogs – online diary or commentary written by an individual
  • Collaborative blogs or group blogs are thoe written by multiple authors
  • Microblogging – small pieces of digital content—which could be text, pictures, links, short videos, or other media
  • Corporate and organizational blogs – written by employees for the employees and/or public too
  • Aggregated blogs – a feed of other blogs on something specific
  • Reverse blogging – composed by its users or opened up for anyone to write
  • vlogs – This is nothing but video blogging, creating videos and sharing

Why blogging?

  • personal reasons – your personal blog posts penning anything of your own interest.
  • record an event or something which needs to be preserved
  • a passion and they like to write down stuff.
  • a way of making a living – these people are hired to write blogposts, articles.
  • Some just want to record their day to day stuff or anything interesting in their life.
  • Some want to make their blog itself a resume of their work.

How to get started with blogging?

There are various Content Management Systems (CMS) like WordPress, Blogger, Medium etc., which lets you create your own blog. Sign up with any one of them and get started. Easiest one is Medium, not much to customize. In case of other two you get lots of options to customize. All of them maintain your content for free but with limitations. And then each of them have their own paid plans which gives you more capacity and more features as per their plans if any.

Start with writing a small post like a gist of your day. Or anything intersting which happened today. Or any story of your’s from the past. Start writing one paragraph per day. Follow few blogs try to observe how they written their post. Learn on the go.

Tips I learnt from others:

  • Best to start off with a small one para post – first step is always tough
  • Be precise and be specific on the topic which you are writing
  • Try to be consistent – like a daily gist or a weekly post or a biweekly or monthly post
  • Try to post one per week initially – I myself found it ideal.
  • Do not over think about criticism. Improve from it.

Once you get a hang of writing consistently next is to plan your next few posts and keep them ready. Try to be plan for a month in advance. We are all humans, we find ourselves sometimes lazy enough to do a routine. With this even if you skip you have one ready. Even if you skip one in your routine just continue writing, never stop.

keep reading keep blogging keep improving

courtesy :