• Home
    • Recent Stories
  • Apps
  • Develop
    • Android
    • iOS
    • Games
    • Tools
    • Testing
    • UI/UX
    • Windows
  • Marketing
    • App Store Optimization
    • Monetization
  • Reports
  • Technology
    • AR/VR
    • Big Data, AI & ML
    • Devices
    • IoT
  • Login
Trending now

Forty and Still a Software Developer?

A WebAssembly Powered Augmented Reality Sudoku Solver

How to Choose the Right Database for Your App

3 Habits That Will Help You Become a Top Developer

How to create realistic UI with Jetpack Compose(Part II)

How I joined the Google Developers Experts program

How to create hot animations for any interface

How to Become a Better Developer Every Single day

MVI Architecture with Kotlin Flows and Channels

The greatest Android modularization mistake and how to undo it

How 7 iOS Apps Could Save You 500MB of Storage

The Top 10 Trending Machine Learning Projects of 2020

From 15,000 Database Connections to Under 100

The Top Blockchain Developer Frameworks for 2021

Abstract & Test Rendering Logic of State in Android

Top Swift and iOS Dev Interview Questions for 2021

Your legacy database is outgrowing itself

How to implement In-App Updates in Android using Kotlin

SwiftUI + GraphQL = 😍🚀🙌

Improve UI Performance with Async RecyclerView Layout Loading

24 Swift Extensions for Cleaner Code medium.com

5
Breanne 5 months ago in iOS 0

One of the best features of both Swift and Objective-C, in my opinion, is extensions. They enable you to add new methods to any class and the whole project will be able to call them without additional inheritance and overloading.

As a mobile developer I work with both iOS and Android, and I very often see Android functions and methods which are shorter, cleaner and more understandable than in Swift. Using extensions, some of these methods can be ported to Swift. Plus with several new methods (extensions) we’ll get a short, clean and easily maintainable code in Swift.

I’ll use Swift, but all these extensions can be migrated to Objective-C or used with Objective-C directly, without conversion.

  • Facebook
  • Twitter
  • Pinterest
  • Google+
Report Story

Related posts:

No related posts.

Tags : codingSwift

Trending Stories

  • Forty and Still a Software Developer?

    Forty and Still a Software Developer? medium.com

  • 10 inspiring illustration styles

    10 inspiring illustration styles uxdesign.cc

  • A WebAssembly Powered Augmented Reality Sudoku Solver

    A WebAssembly Powered Augmented Reality Sudoku Solver blog.scottlogic.com

Our Newsletter

TechHype

Copyright © 2021 TechHype.io.
News, articles and tools for creators of new technologies - Apps, Bots, AI, IoT.
info@TechHype.io | RSS | Feature Request or Contact Us
Login Register

Login

Login with Facebook Login with Twitter Lost Password

Register