Subscribe

IOS developer based in barcelona.

In one of my current projects, I’m working with mobile payments. I have some data types to store important data, in this post I will show you only two: Requests and Transactions. In order to have a transaction, first of all you need to accept a requests, and automatically a transaction is created, and this transaction can have multiple states.

A few months ago I was working on a new app. It uses data from Instagram to display user insights, media insight, etc. Only be available for Instagram Business Accounts. It was fun because I've learned a lot, using a new architecture, testing, facebook/instagram API graph, webhooks, firebase cloud functions, etc.

Last week I created a date formatter to display relative dates. Basically, whether I get a date I need to create a string with the relative date: today, yesterday, etc or if the date can't be relative, I must to display another custom formatter date, for instance Jan 18, 2018 at 5:29 PM. Besides, It needs to be localized, for example in french would be aujourd’hui, hier and avant-hier.

Set, An unordered collection of unique elements, is one of the most important collections types in Swift (array, dictionary and set)

You use set instead of an array when:1. You aren't concerned about the order of the elements (Order does not matter)2. You need to ensure that every element only appears once (no duplicated values)3. You need to test efficiently for membership

I will share with you my experience creating some views in Slackfari. Slackfari is one of my side projects, a new Safari Extension to send messages to your Slack team. I learned a lot, about macOS especially about NSTableView and NSCollectionView.

I'm gonna upload Slackfari to the store, but the project is fully open source, you can take a look at Slackfari

I'm creating a minimal API for Slack, it basically sends messages to users, private channels and public channels. In every request I need to add the same parameter, a valid token. Without this token my requests will fail.

In this case I need a valid token, but in other scenarios you need to create request with same headers, parameters

A few weeks ago, I learned how to retrieve data from Instagram's private API. How? I was diving into the app store, searching apps that were using the Instagram public API, apparently. It was curious that some of them directly didn't use a token to retrieve information: basic user profile, media, relationships... they were pointing to i.instagram.com

A time ago I started to use playgrounds for learning purposes, they are super useful. Recently, I tried to use in a current project with a huge codebase (and also with a huge compile time), just to create views, and the result was very encouraging.

One important thing that I do when I start an app is creating a Stylesheet. In this Stylesheet is defined all the contracts with the designer team: colors, fonts, paddings, and so on. So, instead of adding a hardcoded color

I'm Alberto! an iOS Developer based in Barcelona who enjoys learning about the latest trends of Swift.