SwiftUI – Hide custom onDelete View on tap gesture

I have LazyVStack view that contains a list of views. Each one of the views has a different color and there is 8 points space between them. Threrefore, I can not use List. So I am trying to build a custom trailing swipe that functions similar to the onDelete method of List. This is my […]

By mahan
Published
Categorised as ios, swift, swiftui Tagged , ,

ios – Replace/delete characters in UITextView

I have a UITextView with a custom NSTextStorage, where I add a list bullet, after each Enter, if the prior line starts with a list bullet. When a user Enter and there is only a list bullet in the beginning of the line where the cursor is, I remove the list bullet and stay on […]

By mahan
Published
Categorised as ios, nsrange, nstextstorage, swift, uitextview

ios – Schedule unlimited number of local notifications

I have an app that allows users to create recurrent events. Each one of the events may or may not have reminder/alerts at a specific time of day. If they have so, the app sends a local notification at that time of day. Events are stored in CoreData. Event(name: “Go to London”, date: 2020-04-03 21:40:55.419925+0200, […]

By mahan
Published
Categorised as ios, notifications, swift

iOS – stack fullscreen viewController when presenting another viewController

I have a UITabBarViewController with two tabs. I want to present a viewController fullscreen in one of the tabs. I have used the following code to do so. let navCtrl = UINavigationController(rootViewController: eventViewController) navCtrl.modalPresentationStyle = .fullScreen self.navigationController?.present(navCtrl, animated: true) It works. And EventViewController is fullscreen. However, when presenting another viewController in EventViewController, EventViewController is still […]

By mahan
Published
Categorised as ios, swift, uiviewcontroller

iOS – Notify today extension for Core Data changes in the main app

I have a NSManagedObject called Event that is shared between the host app and today extension. (In Target Membership, both the main app and the widget are checked). The host app and widget have the same App Group identifier and both share Data Model(In Target Membership, both the main app and the widget are checked). […]

By mahan
Published
Categorised as core-data, ios, swift, today-extension

SwipeCellKit does not swipe cell

I want to implement UITableView’s UISwipeActionsConfiguration for a UICollectionView. In order to do so, I am using SwipeCellKit – github My UICollectionView adopts to the SwipeCollectionViewCellDelegate protocol. And the cell inherits from SwipeCollectionViewCell. ViewController with UICollectionView class SwipeViewController: UIViewController { lazy var collectionView: UICollectionView = { let layout = UICollectionViewFlowLayout() layout.scrollDirection = .vertical let collectionView […]

By mahan
Published
Categorised as ios, swift, uicollectionview, uicollectionviewcell

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq