img

Software Development Blog

Magic Square HackerRank Exercise

Magic Square HackerRank Exercise

Problem Defined a magic square n x n to be a matrix of distinct positive integers from 1 to n^2 where the sum of any row, column, or diagonal of length n is always equal to the same number: the magic constant. The given 3 x 3 a matrix s of integers in the inclusive range [1, 9]. The […]

READ MORE

UIBezierPath Lesson. How to draw Cuphead on layers.

I have a lot of custom shape layers and bezier paths on my last projects. I want to share my experience in custom shapes drawing. The knowledge about Core Animation has some interesting problems. As for me, the main problem here is rare in custom shapes using. So only sometimes you need to draw something […]

READ MORE

Multi-Segment Progress Indicator on Swift.

Multi-Segment Progress Indicator on Swift.

On my last project, I had a multi-segment progress indicator challenge. On the first version of the design, this indicator was a half-circle, and I have a half-circle progress indicator post too. UIBezierPath’s way to draw shapes and animations isn’t too easy, and it was interesting for me, to do it in the right way […]

READ MORE

Show the direction of travel on the map in the iOS App. Google Maps.

Show the direction of travel on the map in the iOS App. Google Maps.

Taxi or travel apps always need to show the direction of travel on the map. In these quick tutorials, I will show you how to set up, show, and test the directional marker on the maps. Completed tutorial on Github here So, at first, we need these keys in info.plist file. These settings will allow […]

READ MORE

Nested Functions in Swift. Real experience

Nested Functions in Swift. Real experience

I want to give you a clear understanding of nested functions and share my experience in using nested functions in Swift. Theoretical Part Swift Functions can have nested functions inside their bodies. Nested functions must be defined before the body of their master function. Nested functions are accessible only in their master function. (Only inside […]

READ MORE

Typealiases in Swift. Real tips.

Typealiases in Swift. Real tips.

Type aliases easy to use, but it is not clear how and when to use this. It is a default situation when you started to learn protocols for example. Protocols are easy to use and understand, but difficult to implement in a project without experience and real examples. Default use. You can replace some existing […]

READ MORE

UIAlertController Tutorial

UIAlertController Tutorial

UIAlertController is a subclass of UIViewController. It is an object that displays an interactive alert message. It can have actions and textFields. UIAlertController is very useful because you don’t need to code this simple alerts again and again (It is a pre-styled controller), and because it is very intuitive to IOS users. 1.UIAlertController Styles: UIAlertController […]

READ MORE

How to solve the masksToBounds problem with the shadow of UIView?

How to solve the masksToBounds problem with the shadow of UIView?

Github project In the previous post, I showed how to add different properties like a shadow, border, image, cornerRadius to CALayer. All layers have masksToBounds property. If masksToBounds = true – It will clip all layers that are bigger than their superlayer. And this is a useful property. As we know the shadow is an […]

READ MORE