#ios

Found 62 articles tagged with #ios

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 print unique items of a array in Swift

In Swift, an array is a collection of values that can be of any type. Sometimes, you may want to print only the unique items of 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

What's to Expect in WWDC 2023

This year WWDC will take place from June 5 to June 9, available online for all developers, with a special in-person experience at Apple Park.