<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ashiq Sulaiman on Medium]]></title>
        <description><![CDATA[Stories by Ashiq Sulaiman on Medium]]></description>
        <link>https://medium.com/@ashiqsulaiman?source=rss-723fd281f034------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*E_OCOAznU-q42-UR.jpg</url>
            <title>Stories by Ashiq Sulaiman on Medium</title>
            <link>https://medium.com/@ashiqsulaiman?source=rss-723fd281f034------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 09:31:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashiqsulaiman/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[iPhone X in 2020]]></title>
            <link>https://medium.com/@ashiqsulaiman/iphone-x-in-2020-115ff997324?source=rss-723fd281f034------2</link>
            <guid isPermaLink="false">https://medium.com/p/115ff997324</guid>
            <dc:creator><![CDATA[Ashiq Sulaiman]]></dc:creator>
            <pubDate>Fri, 27 Mar 2020 10:12:24 GMT</pubDate>
            <atom:updated>2020-03-27T10:12:24.259Z</atom:updated>
            <content:encoded><![CDATA[<p>Year after year we see so many brands coming with new flagships that have improved hardware compared to the predecessor in every possible way, with the main focus being speed, camera quality, and screen. This was not the case a few years back every new phone came to the market set a benchmark in the mobile phone industry by at least one compelling feature, apple came with TouchID, Samsung was way ahead in the display game and water-resistant devices, Google pixel for its camera, it all started to slow down at one point where I started to feel that it’s becoming less and less compelling for me to upgrade to the newer flagships. Of course, the newer devices are far more powerful and capable of doing more than my older phone but when my 3-year-old phone is still seamless for my use cases and end of the day it serves it’s purpose well. I use my phone for social media, I take so many pictures, listen to music, watch videos, use some basic photo and video editing apps, occasionally play some games. <br>Considering the ways I use my phone I would care about a few things which would make me upgrade my phone to a newer one.</p><h3>Battery life:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AmZEdt5V4Din_HC-oyETdA.png" /></figure><p>After 3 years of use, my phone’s battery health is still at 86%. After all the hours of music, browsing, social media, photo, and video editing I feel that my phone’s battery is at a very decent state. With iOS 13 Apple has given a feature to optimize battery charging based on my charging routine. As a user, I don’t have a metric that will help me determine to what extent this feature helps me with reducing battery aging.</p><h3>2. Camera:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2UOH29xpnJsvduP7CAYK-w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMVCZ-NPdsHly8jPwCJHng.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7n1P6v3OEhNE-Ff5EwBLTQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0uFz8zkXP8LuGjqktGPnCg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BnOROYXBh9dDoOGmbVk2eA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HAmp2I-uEW_8DC8VxWK5vw.jpeg" /></figure><p>I thought that it would be better to add some sample photos rather than talk much about the camera. The camera works great in day-light. It struggles in low light and it gets really bad with the portrait mode. But that is a small bummer I am ready to compromise on. I can still take better pictures during the daylight. I agree that newer phones can do better than my iPhone X in daylight but, as I said before, it serves my purpose.</p><p><strong>3. Performance:</strong></p><p>Does my phone lag? or does it crash often? Honestly, I hardly face app crashes, my phone is still snappy when I do the aforementioned tasks except when I edit videos. This can get annoying at times depending on the length and resolution of the video. But after three years of usage, I feel that this is something I can expect, with that being said I think this device will hold good for another year of use for me.</p><p><strong>Should you consider buying iPhone X in 2020?:</strong></p><p>The sad part is you cannot expect to get a brand new device unless you find old leftover stock, buying a used phone would save you money. But don’t expect the device to be usable if in a year or two unless you are a light user and somebody who is looking for an iPhone with a notch.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=115ff997324" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Signin bridge for react-native iOS]]></title>
            <link>https://medium.com/@ashiqsulaiman/google-signin-bridge-for-react-native-ios-d5d8161e04e2?source=rss-723fd281f034------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5d8161e04e2</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-native-bridge]]></category>
            <category><![CDATA[objective-c]]></category>
            <dc:creator><![CDATA[Ashiq Sulaiman]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 05:48:30 GMT</pubDate>
            <atom:updated>2019-04-08T06:18:14.405Z</atom:updated>
            <content:encoded><![CDATA[<p>After working on iOS for over two years, I got a chance to work on react-native due to organizational changes. Initially the plan was to port the entire app into react-native in one go but this seemed to take more time than expected. We then planned to start with a hybrid approach in reworking the app on a screen by screen basis and apparently all the new features were written using react-native.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FT8Dhl1KPyzRqU%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fservice-department-customer-T8Dhl1KPyzRqU&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FT8Dhl1KPyzRqU%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="299" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa023b2a1800cf0960cf3327b52073c1/href">https://medium.com/media/aa023b2a1800cf0960cf3327b52073c1/href</a></iframe><p>As a seasoned iOS application developer i had a very tough time to understand the basics of react, redux and sagas. Writing bridges was initially easy until we had to write bridges for SDK’s. I spent so much time and effort in integrating <a href="https://github.com/react-native-community/react-native-google-signin">RNGoogleSignin</a> and failed miserably (Build errors, crashes) and then I started to experiment on writing bridge rather than adding packages. thanks to the <a href="https://github.com/razorpay/react-native-razorpay">react-native-razorpay</a> sdk which showed me how to send data from native to react-native using an event emitter.</p><h3>TL;DR</h3><h3>iOS Bridge with event emitter:</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa0a36f28f48c717781acdc75964bf34/href">https://medium.com/media/aa0a36f28f48c717781acdc75964bf34/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5dfc6dbfc9e5e4bbb747d7f4c7d566d/href">https://medium.com/media/e5dfc6dbfc9e5e4bbb747d7f4c7d566d/href</a></iframe><p>The two important things that you should know about how this works is</p><ol><li><em>RCTEventEmitter: This works like notifications in observer in iOS with the similar principle of unsubscribing from the emitter once the event is received.</em></li></ol><p><em>2. RCTPresentedViewController: This is a subclass of UIViewController which helps us in calling the delegate methods. Since the TopViewController is a react-native view we cannot use the native iOS way of getting the top view.</em></p><h3>Receiving the event on react-native:</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ddfc7f6f17dbe809aeb1547fb6ca33b/href">https://medium.com/media/5ddfc7f6f17dbe809aeb1547fb6ca33b/href</a></iframe><p>The only caveat on react-native side is to stop listening from the emitter typically in `componentWillUnmount’.</p><p><em>Feel free to suggest other ways to achieve this in the comment section. I hope this saved your time.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F61WLZ3iUfQF57UwWZ5%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FFuseMedia-the-end-credits-king-keraun-61WLZ3iUfQF57UwWZ5&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F61WLZ3iUfQF57UwWZ5%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ec61343534852272a860c0d1f24da47/href">https://medium.com/media/1ec61343534852272a860c0d1f24da47/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5d8161e04e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Changing icon colours in iOS using the tintColour property of UIImageView]]></title>
            <link>https://medium.com/swift-india/changing-icon-colours-in-ios-using-the-tintcolour-property-of-uiimageview-2707f5683c75?source=rss-723fd281f034------2</link>
            <guid isPermaLink="false">https://medium.com/p/2707f5683c75</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[uiimage]]></category>
            <dc:creator><![CDATA[Ashiq Sulaiman]]></dc:creator>
            <pubDate>Tue, 09 Jan 2018 12:10:32 GMT</pubDate>
            <atom:updated>2018-01-09T12:10:32.992Z</atom:updated>
            <content:encoded><![CDATA[<p>So i was working on this application called <a href="https://itunes.apple.com/in/app/knappily/id1080608080?mt=8">Knappily</a>, which is basically a knowledge app, i was asked to work on feature where there is a night theme which would change the colour of the background, text and images across all the screens of the application. Changing the colour of the background, images and text were easy, i used a library called <a href="https://github.com/Draveness/NightNight">NightNight</a>. After a design change i had to include a lot of images to the Assets.xcassets. The Problem was i needed two different colours of the same icon. It took a some time for me to find the appropriate icons download them in different colours and resize. Later i figured out a way to avoid this method by using only one set of icon and changing the tint colour of the imageView. The implementation is really simple.</p><p>Step 1:</p><p>Select the image set for which you want to change the colour.</p><p>Step 2:</p><p>In the attributes inspector change the Render As option from Default to Template Image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*W2nuDvpIjptMvYm4ZIzkmw.png" /></figure><p>Step 3:</p><p>And that’s it. All you have to do now is testImageView.tintColor = UIColor.red</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2707f5683c75" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swift-india/changing-icon-colours-in-ios-using-the-tintcolour-property-of-uiimageview-2707f5683c75">Changing icon colours in iOS using the tintColour property of UIImageView</a> was originally published in <a href="https://medium.com/swift-india">Swift India</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>