#ios

Found 70 articles tagged with #ios

iOS Deep Linking: URL Schemes vs Universal Links

There are two ways to implement deep linking in iOS: Define your own custom schemes, or use standard HTTP or HTTPS links that can open your app if it is installed.

May 30, 2023#ios#swift#swiftui

How to show in-app web browser in iOS apps

In iOS, an in-app browser is a component of an app that allows users to view web content within the app, rather than opening the default browser app.

May 07, 2023#swift#ios

How to filter unique items of an array in Swift

If you don’t care about the order, you can use a Set or Dictionary to remove any duplicates, and then convert it back to an array.

SwiftUI .task() vs .onAppear()

Both view modifiers that can be used to run some code when a view is shown but there are some differences between them. In general, .task() is more powerful and convenient but only available in iOS 15 or later.

Apr 22, 2023#swiftui#swift#ios

Swift Dynamically Callable Types

The attribute dynamicCallable allows you to mark a type as being directly callable, then you can use a simpler syntax to invoke methods on that type, instead of using dot notation.

Apr 20, 2023#swift#ios

Swift Dynamic Member Lookup Types

The @dynamicMemberLookup attribute enable you to access properties of a type that are not declared at compile time, but resolved at runtime.

Apr 20, 2023#swift#ios

Swift callAsFunction

A special method that allows you to call an instance of a type as if it were a function, useful for creating callable objects that encapsulate some logic or state.

Apr 17, 2023#swift#ios

iOS Interview Questions (UIKit)

UIKit is a framework that was introduced by Apple in 2007 alongside the original iPhone. Today, UIKit remains a crucial part of the iOS development toolkit and is used by developers worldwide.

Apr 14, 2023#ios#swift#uikit

How to encode and decode JSON data in Swift

With Codable, you can easily convert Swift objects to data representations and vice versa, without having to write complex serialization and deserialization code.

Apr 08, 2023#swift#ios#how-to

Swift KeyPath vs #keyPath()

Swift key paths are a way of storing uninvoked references to properties, which is a fancy way of saying they refer to a property itself rather than to that property’s value.

Apr 07, 2023#swift#ios