Oh my Swift
Archives Social media Showcase Support us
  • Experimenting with Swift async and await pattern using Xcode

    Dec 25, 2020 • Concurrency • swift async await, async/await swift, concurrency in swift, swift concurrency, async await, async await swift5

    You all might know that async/await is accepted and is available in the main snapshots! Let’s get our hands dirty by trying out some basic example of async/await in Swift.

    Read on →

  • Common problems and workarounds while building apps using Apple Silicon

    Dec 19, 2020 • Apple Silicon • apple silicon, cocoapods, cocoapods apple silicon, cocoapods not installing in apple silicon, firebase, firebase not building in apple silicon, firebase in apple silicon, firebase apple silicon, m1 processor, apple silicon project not building

    Apple’s new Apple Silicon (M1 processor) is a beast. The apps open pretty quickly, and the slow Xcode build times are a thing of the past. But what does it have in store for the iOS/macOS developers?

    Read on →

  • Closure based actions in UIButton

    Nov 2, 2020 • UIButton • swift, uibutton closure, closure, closure uibutton, callbacks closure, closure callbacks

    iOS 14.0 brings us many improvements and new APIs using which the developers can write efficient code. One such API is the closure based action API instead of the addTarget method in UIControls. Yes, you heard me right—no more usage of addTarget methods, #selector(), and @objc annotation in front of methods. More importantly, we can write a closure based code using the action handler. Okay, enough talk, let’s dive into the code.

    Read on →

  • Replacing UIImagePickerController with PHPickerViewController

    Aug 29, 2020 • PHPickerViewController • swift, imageassets, phphotopickerviewcontroller, uiimagepikcercontroller, images

    Almost every app requires photos and video access these days. Before iOS 14.0, the iOS developers used UIImagePickerController to access the items from the user’s media library. From iOS 14.0, Apple is providing its developers a brand new way to select images or videos from their apps using PHPickerViewController

    Read on →

  • Embracing Localization in Image Assets

    Jun 14, 2020 • XCAssets • swift, imageassets, localization, image localization

    One of the most significant features which make an app stand out is localization. When we hear the term localization, the first thing that comes to mind is localizing the text displayed in UILabels, UITextViews, UIButtons, and other UIElements. It is quite straight forward to localize the text in the UIElements, and most of us think that we have localized the app, and it is ready to go! But wait, there is one more area I would like to highlight, and that is the images used in the app. You heard me right. If the images used in the app contain text, then they should be localized as well. Localizing the image assets is slightly different but not so hard.

    Read on →

« Older

© - Powered by Jekyll & whiteglass - Subscribe via RSS