Feb 08, 2022 Swift

How to use closure button in swift

Hey Guys Today We will See About how we can use the closure based call on the button. Previously we were used to use the addtarget and selector method as used in objective C . Whenever we used to use…

Feb 05, 2022 iOS

How to use notificationcenter in swiftui with example

Notifications on iOS are a simple and effective method to communicate data in a loosely linked manner. That is, the sender of a notification doesn't have to worry who (if anybody) receives the message; it just broadcasts it to the…

Feb 04, 2022 Swift

Longest common subsequence program in swift

In Sets 1 and 2, we addressed Overlapping Subproblems and Optimal Substructure Properties, respectively. In Set 3, we also talked about an example problem. Let's have a look at another problem that can be solved using Dynamic Programming: the Longest…