Tagged: #GameDev

Gif animation (Swift)

Embed Gif animation? Easy! 😏 There are 3 easiest ways to embed an animation into a Gif application:  Download using UIImageView: 𝘭𝘦𝘵 𝘪𝘮𝘢𝘨𝘦𝘎𝘪𝘧 = 𝘜𝘐𝘐𝘮𝘢𝘨𝘦.𝘨𝘪𝘧𝘐𝘮𝘢𝘨𝘦𝘞𝘪𝘵𝘩𝘕𝘢𝘮𝘦 (“𝘯𝘢𝘮𝘦”) 𝘭𝘦𝘵 𝘪𝘮𝘢𝘨𝘦𝘝𝘪𝘦𝘸 = 𝘜𝘐𝘐𝘮𝘢𝘨𝘦𝘝𝘪𝘦𝘸 (𝘪𝘮𝘢𝘨𝘦: 𝘪𝘮𝘢𝘨𝘦𝘎𝘪𝘧)  Download using Data: 𝘭𝘦𝘵 𝘪𝘮𝘢𝘨𝘦𝘋𝘢𝘵𝘢 = 𝘵𝘳𝘺? 𝘋𝘢𝘵𝘢 (𝘤𝘰𝘯𝘵𝘦𝘯𝘵𝘴𝘖𝘧: 𝘉𝘶𝘯𝘥𝘭𝘦.𝘮𝘢𝘪𝘯.𝘶𝘳𝘭 (𝘧𝘰𝘳𝘙𝘦𝘴𝘰𝘶𝘳𝘤𝘦: “𝘯𝘢𝘮𝘦𝘎𝘪𝘧”, 𝘸𝘪𝘵𝘩𝘌𝘹𝘵𝘦𝘯𝘴𝘪𝘰𝘯: “𝘨𝘪𝘧”)!) 𝘭𝘦𝘵 𝘪𝘮𝘨𝘛𝘪𝘮𝘦𝘎𝘪𝘧 = 𝘜𝘐𝘐𝘮𝘢𝘨𝘦.𝘨𝘪𝘧𝘐𝘮𝘢𝘨𝘦𝘞𝘪𝘵𝘩𝘋𝘢𝘵𝘢 (𝘪𝘮𝘢𝘨𝘦𝘋𝘢𝘵𝘢!) 𝘭𝘦𝘵 𝘪𝘮𝘢𝘨𝘦𝘝𝘪𝘦𝘸 = 𝘜𝘐𝘐𝘮𝘢𝘨𝘦𝘝𝘪𝘦𝘸 (𝘪𝘮𝘢𝘨𝘦: 𝘪𝘮𝘨𝘛𝘪𝘮𝘦𝘎𝘪𝘧)  Download via URL: 𝘭𝘦𝘵 𝘨𝘪𝘧𝘜𝘙𝘓 : 𝘚𝘵𝘳𝘪𝘯𝘨 = “𝘩𝘵𝘵𝘱://𝘸𝘸𝘸.𝘯𝘢𝘮𝘦.𝘤𝘰𝘮/𝘯𝘢𝘮𝘦𝘎𝘪𝘧.𝘨𝘪𝘧” 𝘭𝘦𝘵 𝘪𝘮𝘢𝘨𝘦𝘜𝘙𝘓 = 𝘜𝘐𝘐𝘮𝘢𝘨𝘦.𝘨𝘪𝘧𝘐𝘮𝘢𝘨𝘦𝘞𝘪𝘵𝘩𝘜𝘙𝘓(𝘨𝘪𝘧𝘜𝘙𝘓) 𝘭𝘦𝘵 𝘪𝘮𝘢𝘨𝘦𝘝𝘪𝘦𝘸 = 𝘜𝘐𝘐𝘮𝘢𝘨𝘦𝘝𝘪𝘦𝘸(𝘪𝘮𝘢𝘨𝘦: 𝘪𝘮𝘢𝘨𝘦𝘜𝘙𝘓) Cats Gif RabbiFox 2-3 easy steps and animation is built in! Supplement to the code in the document: iOSGIF.swift Swift...

Read & comments

Effect Blur (Swift)

In the standard Xcode tools, there is one very convenient thing – UIVisualEffectView. Often a blur effect is needed and to make life easier, you can use this tool. With it, you can blur any object, select a blur level and a hue. IOS Development Programming Swift tutorial RabbiFox

Read & comments

Apple emoji

😏👿👻👼🏻⛄️ - Apple Emoji

Apple has banned developers from using emoji in their applications. Emoji Apple can now be used only when typing text from the keyboard, in other cases (for example, use as buttons or other elements) in the release of the application will be denied. Development Programming Swift tutorial

Read & comments

Json (Swift)

Typically, if we work with the API Social. networks, the data comes to us in the .json format and we need to work with the data contained within this document. To work with this data is very simple, in most cases the data in the document are contained in the form of arrays or dictionaries. For example, we received data in this form: let json = “” “{// the first parenthesis opens the object “data”: [// square bracket denotes an array {// and this is again an object, that is, we get an array of...

Read & comments

Share the link (Swift)

Share the link! Do you know what this phrase means? Share a link or picture, if it’s simple, then it means sharing it with someone. In this case, share a link with your friends. For such purposes, you can use the UIActivityViewController. The UIActivity object has a set of parameters excludedActivityTypes (assignToContact, print, addToReadingList …) with which you can define an object for sharing. Standard sharing implies that the user can share the specified object in any application (of course, which has this feature), which is installed on the mobile device. Swift programming tutorial RabbiFox

Read & comments