Custom button with simple animation on Swift. Example 1

Hello Habr! In this article, I'll show you how to create your custom button in Xcode with a simple animation using the Swift language. Compatibility: iOS8 or higher.
 
 
This is just an example, so all kinds of permissions, such as private and so on, are not used here. It is also assumed that you are already familiar with the basics of Xcode and Swift and can easily create an initial "Single View App" project in an Xcode environment, this step will also be omitted.
 
 
The button will look like this:
 
Custom button with simple animation on Swift. Example 1 The normal ...
+ 0 -

How to test hypotheses and earn on Swift using split tests

How to test hypotheses and earn on Swift using split tests

 
Hello! My name is Sasha Zimin, I work as an iOS developer in the London office Badoo . Badoo has very close interaction with product managers, and I have taken over from them the habit of checking all the hypotheses that I have about the product. So, I started writing split tests for my projects.
 
 
The framework, which will be discussed in this article, was written with two goals. First, in order to avoid possible errors, it is better that there is no data in the system of analytics than the data that is incorrect (or even data that can be misinterpreted and broken up by firewood). Secondly...
+ 0 -

3DTouch - Scales for iPhone

After entering the market, iPhone 6s and iPhone 6s Plus with screens that support technology. 3D Touch , in the App Store almost immediately there was an application for weighing plums and peaches.
 
 
3DTouch - Scales for iPhone
 
Enter , you are welcome.
Have you thought about this application before?
Yes, I have already implemented
Only now I have learned, now I want myself such a
Yes, only for educational purposes
A-
112 users have clicked. Abstained 41 users.After entering the market, iPhone 6s and iPhone 6s Plus with screens that support technology. 3D Touch , in the App Store almost immediately there was an application for weighing plums and peaches.    Enter , you are welcome.Have you thought about this application before?Yes, I have already implementedOnly now I have learned, now I want myself such aYes, only for educational purposesA-112 users have clicked. Abstained 41 users...
+ 0 -

iOS 12: grouping of notifications

This article, like previous , is devoted to the changes in
Notifications
, which appeared in iOS 12.
 
iOS 12: grouping of notifications

 
In the last article I told about general innovations, this time I will dwell on the grouping of notifications.
last article was updated, with the code available at github . Two reports at WWDC were devoted to the implementation of notifications: What's New in User Notifications and Using Grouped Notifications . We can discuss the innovations ...
+ 0 -

iOS 12: news in notifications

The WWDC conference has passed, and there are still a lot of reports worth seeing. There were key issues that Apple paid special attention to. Core ML, Siri Shortcuts and, of course, changes in Notifications.
 
iOS 12: news in notifications
 
Since not everyone has enough free time to wade through the jungle of documentation, which, as is usually the case at the beta stage, leaves much to be desired, I prepared a review of new features and reinforced the material with practical implementation. Read, understand and implement in your applications.
IBAction
:
 
@IBAction func ...
+ 0 -

Universal solution for UITableViewRowAction and UIContextualAction

Universal solution for UITableViewRowAction and UIContextualAction
 
 
Many have faced the problem of implementing a beautiful button mapping for UITableViewCell when shifting to the left. Some used the standard functionality "out of the box", others were bothering over their own implementation, and someone treated Unicode-symbols. In this article I will discuss how to achieve the maximum customization of UITableViewRowAction.
 
UITableViewRowAction Is a class that allows the user to perform certain actions with the given cell (such as "delete", "change", etc.) when moving the cell to the left. Each instance of this class represents one action to execute and includes ...
+ 0 -

We write UI Snapchat'a on Swift'e

Prologue
 
In one of my projects, I needed to make an interface like the one in Snapchat. When a card with information on top of the image from the camera leaves, smoothly replacing it with a solid color, and just as in the opposite direction. I personally was especially fascinated by the transition from the camera window to the side card, and I went with great pleasure to recapture the ways of solving this problem.
 
On the left is an example of Snape, on the right is an example of an application, the creation of which we will do.
 
We write UI Snapchat'a on Swift'e ...
+ 0 -

Clean swift architecture as an alternative to VIPER

Clean swift architecture as an alternative to VIPER

Introduction


 
At the moment there are many articles about VIPER - clean architecture, various variations of which at one time became popular for iOS projects. If you are not familiar with Viper, you can read here , here or here .
 
 
I would like to talk about the alternative VIPER - Clean Swift. At first glance, the Swan Swift is similar to the VIPER, however the differences become visible after studying the principle of module interaction. In VIPER, the basis of the interaction is Presenter, it transmits Interactor's user requests for processing and formats the data received ...[/h]
+ 0 -

Interaction with the server via the API in iOS on Swift 3. Part 2

Interaction with the server via the API in iOS on Swift 3. Part 2This article is a continuation of article Interaction with the server through the API in iOS on Swift 3. Part 1 and update old article , written in Objective-C, on swift 3.
 
 

Brief theory.


 

GET request.


 
GET is the simplest method of HTTP request, and it is the browser that uses it to load web pages. It is used to request content located at a specific URL. The content can be, for example, a web page, a picture or an audio file. By convention, GET requests are read only and in accordance with the W3C standard should not be used in operations that change the server side. For ...[/h][/h]
+ 0 -