182 Followers
·
Follow

Easily clean up the unused images and resources in your Xcode project

Image for post
Image for post
Photo by Neal E. Johnson on Unsplash

Images that are not used in our projects can sometimes be annoying. One of the biggest results of this is that it increases the size of the application.

On the contrary, when we remove unused images or if they are left, the project is reduced and the application size decreases. It also prevents image clutter.

To solve this problem, I will share with you two methods below and explain one of them with examples.

LSUnusedResources did not consider it worthy to explain since this is no longer maintained.

I will focus on FengNiao and explain its details.

Cleaning Up Unused Images With FengNiao

FengNiao is simple command-line util to deleting unused image resource files from your Xcode project. FengNiao is a command-line tool mostly written in Swift and It’s an open-source project. You can access the tool on Github. …


Image for post
Image for post
Photo by Karen Vardazaryan on Unsplash

In this iOS guide, I am going to explain collection types that are Arrays and Sets and I am going to reinforce them with short examples.

  1. Array
  2. Set

Arrays and Sets have several features in common. They both store a collection of values of the same type. The most important difference between them;

A Set is unordered, and each element can only appear once in a set. While an Array can contain duplicate elements, each value contained in a set is unique.

Array

The Ways of Initialization of arrays.

Image for post
Image for post

As in the screenshots below and above, the Animals series was started with the string element type. …


What are Swift Literals and how do they work?

Image for post
Image for post
Photo by Joshua Reddekopp on Unsplash

In this iOS guide, I am going to explain Swift literals, and I am going to reinforce the following topics by giving examples in order.

  • What are the Swift literals?
  • How do they work?
  • Standard literals
  • Literal initialization for custom types

What Are the Swift Literals?

Literals are digits of characters that describe constant values to be stored in properties. Literals are used to initialize or assign value to variables or constants.

How Do They Work?

In the Swift standard library, type aliases of primitive types are created. …

About

Batikan

iOS Dev.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store