Custom blocks in IOS app

Grid Music App  > iOS App Development >  Custom blocks in IOS app

Absolutely any block can be built into the scroll canvas, and for this you will not need to write too much code.

Each JSON block is two upper levels: Type (type of block) and Data (json content that depends on the type of block). For example, we’ll come up with and make a dash – callout:


    “type”: “callout”,

    “Data”: {

        “emoji”: “🙀”,

        “Text”: “This is a cubem block Which Was Easily Integrated with A Few Lines of Code.”



First of all, we will create a custom type-reckoning for our own blocks, immediately adding Callout there:

Enum Customblocktype: String, Ejabstractblocktype {



Then we write the model for the DATA field, it is important to put the protocols:

Public STRUCT CalloutBlockContentim: EjabstractblockContententem {

    Let Text: String

    Let Emoji: String


The next step we will prescribe the style for our removal, also implementing EJBlockStyle:

Struct CalloutBlockStyle: Ejblocktyle {

    // yellow

    Let Backgroundcolor = Uicolor (Red: 1, Green: 0.78, Blue: 0, Alpha: 0.2)

    Let Cornerradius: Cgfloat = 6

    Let Linespacing: Cgfloat = 10

    let font = uifont.syStemfont (office: 16)

    Let TextColor =

    Let emojifont = uifont.systemfont (of 24)


And, of course, layout. In a simplified form, without details, the implementation of the Vew looks like this:

Ready! We look at the result in the form of a light yellow bandage with a shocked cat in the center of the screen:

Disadvantages today

Only the display, content, the possibility of editing blocks from the keyboard on the smartphone are supported.

There is no interactive with the content of blocks (except for pressing hyperlinks and formatted links). Of course, you can write your custom block and prescribe everything that your heart wants there. But no architecture at the framework of the framework is supported by interactive.

Styles for seven types of blocks supported from the box are not comprehensive. In addition to color, font and indentations, the text has at least an inter -line interval, coreing, etc. But again, nothing interferes with the reduction of one or another block or style to the design system of your project.


Editor.js Kit is well suited for those who need to sell a Backend-Driven layout in a mobile product at least several screens. At fairly small time costs, you can integrate an aesthetic Native user of the interface to yourself in accordance with your design code without clutching the project by third-party dependencies.

Along with No-Code and Low-Code products, our solution is designed to reduce the time that the team spends on the design of trivial tasks, and the programmer on writing the BoilerPlate code, which is especially important for startups and commands at the stages of creating an MVP product.

Everyone interested in – welcome to us at Github: iOS and Android.

The Freimvorku was a team

iOS 16: full instruction for a mobile marketer

Very little left until the iOS 16 update. And this means our usual world of mobile marketing will undergo a number of changes associated with the attribution of traffic on iOS devices, and this will also radically affect the accuracy of determining targeting in advertising networks.

For our part, we tried to collect the maximum amount of data in one place, combine different developments in preparation for the transition. This will help the marketer not to collect information from different sources, but to go through the entire renewal cycle according to one instruction.

It is quite difficult to predict the real effect of the complete refusal of IDFA in the world of mobile marketing today. However, in order to reduce these losses, we have prepared a chekist and a guide that will help minimize these risks at least for a share.

Update your analytics SDK system

Check the integration of an advertising source with your analytics system

Install Conversion Value

Check out in detail with the attribute solution of your analytics system

Check out in detail with the parameters and the decision of the traffic source proposed as part of the iOS 14 update

Update your analytics SDK system

The first and most important is the update of the SDK of your analytics system. Each of them describes in detail the process of preparation and update SDK. Let’s detail this for each of the popular analytics systems.

For Appsflyer, it is important to update the SDK of this analytics system to version 6. The detailed instruction is here.

This will make it possible to maintain the API for the iOS 16 and the App Tracking Transparency (ATT) of frameworks, integrate the Skadnetwork API and support the Apple Search ADS API and framework for Skadnetwork solutions.

For ADJUST, it is important to update the SDK to version 4.23.0 and later:

In the material we consider the most popular MMP’s, however, other analysts also prepare updates. You can find information about this in their blogs and specifying the support team with

Check the integration of an advertising source with your analytics system

Each of the largest advertising networks has prepared a list of updates and changes associated with iOS16, as well as allowing minimizing the risks of precise targeting.


If you use Facebook SDK in your product, the Facebook SDK update is critical, which will support Apple Skadnetwork.

It is also important to note that now there are a number of certain restrictions for advertising campaigns that are aimed at promoting a mobile application.

If you need to configure advertising optimized for the events of conversions in the company’s application, you need to take into account additional restrictions: