Choosing the right view between UILabel and UITextView to display text inside your iOS, iPadOS and macOS Catalyst App

The dilemma of choosing between UILabel and UITextView starts when you want to display text in your Apple iOS, iPadOS or macOS Catalyst App.

I have even gone through this process of choosing UILabel or UITextView to display text on my app.

So I have made a small numbered list to help you out to choose the right option…

Choose UILable to display text:

  1. If the text word count is small in number
  2. If Top Aligning text to the top border is not the requirement
  3. UILable is not tappable or interactive or selectable to the user’s input
  4. if you want to automatically adjust the font size and fit text to the UILabel bounding box layout

Here is Sample Code for UILabel:

(more…)

Continue Reading Post

When using UINavigationController in your iOS, iPadOS and macOS app sometimes you need to show/hide the navigation bar on a particular view and here is how to do it without disturbing the navigation bar hierarchy in your Main.storyboard file.

Sometimes you want to hide Navigation Bar from a particular view without manually deleting it from Main.storyboard,

So here I have documented how to do it programmatically instead.

Step 01: Copy the following code to your ViewController’s Swift file’s ‘viewWillAppear’ method for which view you want to hide Navigation Bar on its load on your iPhone, iPad or Mac’s (Catalyst) app screen.

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(true)
self.navigationController?.setNavigationBarHidden(true, animated: true)
}
(more…)

Continue Reading Post

How programmatically add Fab (Floating Action Button) Button to iPhone, iPad and Mac (Catalyst) App

When Google released Material Design Guidelines they introduced many new design elements and one of them was Fab Button i.e. Floating Action Button

Normally we see the Fab button in Android Mobile Apps but a lot of Apple iPhone, iPad and Mac App Developers has started using the Fab button in their design.

Here we will see how to add the Fab button programmatically in your iOS, iPadOS and macOS app on any view including UICollectionView or UITableView.

Step 01: First declare the UIButton variable in your View Controller

var fabButton = UIButton()

Step 02: Add this code to viewDidLoad()

(more…)

Continue Reading Post

Here is Solution if TP-Link Router is not loading some particular websites

If you are having a problem with loading or browsing particular/specific website then you can follow the below steps to resolve that problem.

Step 01: Navigate to your TP-Link router’s web interface. i.e. Normally http://192.168.0.1/

Step 02: Log in to your TP-Link router’s Administration Web Page

Step 03: Go to > Advance > Network > Internet > Click on Advanced Settings

(more…)

Continue Reading Post

Why typing Devanagari Alphabets (Marathi, Sanskrit, Hindi) on a personal computer is so difficult? And why typing Devanagari in Latin is so easy and preferred by many?

I was planning to write this blog post for the last many years. I was facing this issue since I had my first Microsoft Windows Operating System based computer in the year 2002. And after that, it got solved partially on Mac in the year 2008. And I faced the issue of Marathi on the web when I had my website mandarapte.com in the year 2010 and then my community Marathi website chitpavankatta.com in the year 2012.

The idea of writing this blog post or writing documentation about why we face the problem of typing Marathi / Sanskrit / Hindi with Devanagari Script on Computer got more important when some category of journalists or people who started false propaganda to tell the Marathi population at large that Devanagari Script for the Marathi language is no more relevant anymore rather we should abandon Devanagari Script Alphabets and start using Latin Script to write the Marathi Language. An example was given by these people was that of the young generation who are writing or chatting or texting on their mobile phone using Facebook, Twitter or Instagram that they use Latin script to write Marathi than using Devanagari Script.

At that time I attended few lectures on Devanagari Calligraphy and Typography where I met an important person like Mr Mukund Gokhale from Pune who had done extensive work in building Marathi Typewriter with his two-three seniors in his field. He also worked with popular calligrapher, typographers to bring Devanagari on computer i.e. designing popular Devanagari fonts to be used on Computer. At that time I was working in IITB as a web designer. After that, I met Mukund Gokhale at his Pune home to discuss why Marathi Typing is so difficult and why it is targeted by anti-nationals who have no linguistic background to speak about abandoning Devanagari script itself. We discuss it at length he even showed me software that he has developed with his developer tech support to design Marathi based digital artworks and designs. It was his initiative to create an alternative solution to Adobe Photoshop / Adobe Illustrator who doesn’t support Devanagari Script in the year 2014/17. And now it’s the year 2021. Because of these long conversations on phone or personally meeting each other and I even developed the Devanagari Learning app for iPhone, iPad and Mac.

When this propaganda was started by abusing the Marathi language and falsely showcasing its irrelevance in today’s world. I talked with popular Hindu Orators who were tirelessly working to stop this propaganda. So people like me were middlemen between people like popular Hindu orators and calligrapher/typographer Mukund Gokhale to share knowledge and know-how between them and connect the dots.

So I am going to write here my observation that I got to learn while talking with Mukund Gokhale and some observations are of my capacity as I am myself designer and developer too who want to talk and design/develop in Marathi.

(more…)

Continue Reading Post

How to completely uninstall Android Studio from your Mac?

After downloading and installing Android Studio for Mac but I noticed my Mac started heating too quickly with fan running at full speed and there was also performance issue.

So I decided to completely uninstall Android Studio from Mac, I used following command and I have also documented it below if you want to perform same process for uninstalling Android Studio from your Mac.

Open Terminal.app from Applications > Utilities > Terminal.app and execute following commands

(more…)

Continue Reading Post

My Experience with sexism at the workplace

I was working with one of my old employers. They hired a person to lead or head the design team in their organisation. And I suddenly started facing odd, arrogant and erratic behaviour from the newly hired design head.

I completed one massive project which lasted me designing for more than 7/8 months then there was no work for any designer in the Mumbai location. So I and another designer were hoping new projects may be in pipeline and will be assigned to us. But a new design head started telling me or complaining about my efficiency and commitment. He even questioned my ability to being UX Designer…

(more…)

Continue Reading Post

How to remove ‘Extended Attributes’ e.g. ‘Where from’ property details from Files

Imagine you have downloaded a file from a website or especially Google Drive shared folder and when you select the same file on your local Macintosh HD and use the ‘Command + I’ command on your Mac’s Keyboard what you see is a long list of gibberish URL the file you downloaded from under ‘Where from’ section.

It looks something like this:

Now you want to get rid of this Where from section gibberish from your file or all files inside the folder, You may ask how to do it? The answer simply follows these simple steps.

To remove specific ‘Where from’ attribute from file:

Use the ‘xattr’ command with the ‘-d’ flag and then describing the command to delete specific attributes. Here ‘Where from’.

(more…)

Continue Reading Post

How to fix Email DNS related Error called ‘550: relay not permitted’

You may face this error called ‘550: relay not permitted’ if your remote email server is misconfigured on your web / email hosting service. You may even face this issue when you have misconfigured your DNS settings on your Cloudflare account.

Main symptom is you are unable to receive emails on your email id.

So how to fix this?

Solution is simple!

(more…)

Continue Reading Post

Why food you order online platform like Swiggy is more expensive than eating in the same hotel you ordered from?

I was wondering about this for a long time,

When I eat Bhel Puri for 35/- rupee at Hotel ‘A’ but I order the same Bhel Puri from same hotel ‘A’ through Swiggy is showed as 50/- rupee at MRP price.

Why these discrepancies? Even I saw Swiggy’s user base asking them the same question again and again on Twitter.

(more…)

Continue Reading Post