img

Software Development Blog

Quickstart with CALayer and CABasicAnimation

Quickstart with CALayer and CABasicAnimation

What is CALayer? CALayer is an object from the Core Animation framework. Each UIView backed by CALayer class, and you can easily find it in view.layer property. This class helps us to modify views and animate them. Basically, you animate a layer of view, but UIView size, position, etc depend on the layer property. So, […]

READ MORE

How to save time with Xcode snippets?

How to save time with Xcode snippets?

Do you feel that you are sometimes needed to create the same parts of code? Code snippets can easily help you. For example, we need to create a Singleton class. 1. Create a code that you want to reuse. 2. Highlight Singleton code and press Editor -> Create Code Snippet. 3. Name it and write […]

READ MORE

How to open a web site or phone from my iOS Swift app?

How to open a web site or phone from my iOS Swift app?

How to open a web site? Like on the code above, you just need to create a non-optional URL to a needed website (google.com for example), with function canOpenURL(url) check if your application can open this resource. If canOpenURL(url) returns true – you can call the open function with your URL. (If a website, which […]

READ MORE

How R.swift can save your project’s time?

How R.swift can save your project’s time?

iOS swift project gives you a dozen of ways to share your color, fonts, configs. I started my iOS career a few years ago and as an average programmer, I want to share some global data and I wrote my custom stuff for this. It is not a problem, to create a custom manager for […]

READ MORE

How to create an attributed UILabel?

How to create an attributed UILabel?

It is a simple tutorial for people who don’t like to work with attributed text, but sometimes you just need to do because of your design. Now I will show you the most used attributed properties and how to collect one label with a few styles, fonts, font sizes, colors, etc. I will try to […]

READ MORE

UIKit, Info.plist file

UIKit, Info.plist file

UIKit is a framework for creating iOS and tvOS apps user interfaces. It is very important to know UIKit right now because SwiftUI (the new way in interface creating) is still young and only supports iOS 13 version and higher. So the next 2 to 4 years, UIKit will be must-know technology in native iOS […]

READ MORE

VIPER. Basic concepts

VIPER. Basic concepts

Start with VIPER Architecture pattern. How does it work? How to implement it? cons and pros of VIPER. Theoretical conclusions. If you are reading this, that means that you heard about VIPER architecture and you want to understand how it works, cons and pros of VIPER and which project needs VIPER architecture? I read many articles about VIPER and […]

READ MORE

Composition and Inheritance OOP concepts at work!

Composition and Inheritance OOP concepts at work!

Hi guys, today I gonna talk about OOP Composition and Inheritance concepts and how we can solve the main inheritance problem. If you want to resolve duplication of code, you need an ability to share this code is some way and programming languages have a few mechanisms for that. Tho main of them — Inheritance and Composition concepts. So let’s dive into a […]

READ MORE

DRY Principle Of Software Development. Common Mistake

DRY Principle Of Software Development. Common Mistake

DRY is a basic principle in any software development. Certainly, it is the most understandable software principle, but not everything is so obvious. I want to show you when you don’t need to follow this principle ????. DRY is an acronym, of “Don’t Repeat Yourself”. The main problem that DRY can solve is a reducing repetition […]

READ MORE

What is actually Swift Enums?

What is actually Swift Enums?

When I started to learn Swift Language I knew the most of general data types. But I didn’t know what are Enums and I tried to avoid them all the time. I didn’t have Enums in javascript or PHP and it was difficult to understand when and how I should use them. I will try […]

READ MORE