Post

Replies

Boosts

Views

Activity

Learning Management System (LMS) Framework for Swift App
Is there any good framework that can be used in educational app as Learning Management System (LMS). Should be full fledge for creating courseware for E Learning App. Should be compatible with all Apple Platforms. Any help or link will be greatly appreciated. As I didn't found anything that mentions designed for Xcode. All LMS belong to Web based apps.
0
0
370
Aug ’24
Converting ViewController Module to External Swift Package
I used the Local Folder UIKit-Based ViewController Module to select three Xcode projects that may work differently with string values stored in each Xcode Project Helper File. However, I have Successfully converted that Module to an Independent Swift Package And was able to deploy it on GitHub for easy use with different projects without having to update each file everywhere. But Now the string value that the Package depended on is not taking that value from the Xcode project it has been added to. So, How do we get value from the Xcode project for an independently added Swift Package to make it work?
0
0
539
Sep ’23
Lay outing Issues While Using SplitViewController over CollectionViewController
I was using CollectionViewController all along without any lay outing issues. After implementing SplitViewController for CollectionViewController... I noticed when I toggle switch for SplitViewController gap between two cells breaks or layouting of Cell i.e. sizeForItemAt I have implemented multitasking - view for my app. i.e. if traitCollection.verticalSizeClass == .regular && traitCollection.horizontalSizeClass == .regular etc. How to fix this?
0
0
591
May ’22
UIVisualEffectView Not working in macOS Catalyst
I am using UIVisualEffectView for my Popup View Controller view for my app. Code is successfully working in iOS and iPadOS to blure view background. But view for macOS Catalyst app is white without transperency and blur. How to solve this? I am using following code... self.view.backgroundColor = UIColor(red: 255/255, green: 255/255, blue: 255/255, alpha: 0.3) let blurEffect = UIBlurEffect(style: .light) let blurEffectView = UIVisualEffectView(effect: blurEffect) blurEffectView.frame = self.view.bounds blurEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight] self.view.insertSubview(blurEffectView, at: 0)
0
0
895
Aug ’21
Disable Dark Mode for iOS, iPadOS and macOS Catalyst App using Swift Programming Language
I want to disable Dark Mode system wide. Apple Developer has mentioned that you can add 'UIUserInterfaceStyle' key to info.plist. But I checked there is no such key in list and it also gives error when you upload app to the App Store. I tried using below code in AppDelegate.swift file. window?.overrideUserInterfaceStyle = .light' But it seems above code doesn't apply to LaunchScreen.storyboard How to fix this? That is LaunchScreen should also obey command to disable dark mode system wide.
6
0
4.1k
May ’21
Changing UITabBar item image on selected and unselected state for Three Tabs but getting error
I have implemented three tab bar view controllers for my app. Each tab has collection views, And I have implemented following code in my ViewController to change tab bar image icon from stroke to fill on respective tab bar selection. I am using System Icons (SF Symbols). My Code: self.tabBarController?.tabBar.items?[0] = UITabBarItem(title: "Myanmar", image: UIImage(systemName: "m.square.fill"), selectedImage: UIImage(systemName: "m.square")) self.tabBarController?.tabBar.items?[1] = UITabBarItem(title: "Singapore", image: UIImage(systemName: "s.square"), selectedImage: UIImage(systemName: "s.square.fill")) self.tabBarController?.tabBar.items?[2] = UITabBarItem(title: "Hyderabad", image: UIImage(systemName: "h.square"), selectedImage: UIImage(systemName: "h.square.fill")) Error that I am getting at AppDelegate is: "Directly modifying a tab bar managed by a tab bar controller is not allowed." How to solve this?
4
0
8.1k
Apr ’21
Implementing Free Trials for My Paid App
I have few questions about implementing free trials for my UIKit Swift App. Currently my app is paid i.e. One time purchase. I have good amount of user who have purchased my app as an Paid app previously. Now I want to introduce Trial period for my app I am also exploring RevenueCat framework for this... My Questions: If I implement Trial period then can I offer free app as my previous user have already bought my app when it was paid. And new user can use my app for free for 14 days then one time payment will start. Is there any good documentation for this kind of logic / programming? with source code examples... Thanks in advance...
0
0
866
Apr ’21
Rearrange collection view cells within it's section
I have used UICollectionView Cells for my app. It is populated by Arrays. I have two CollectionView Sections. Section '0' & Section '1' has it's own cells populated with arrays. There are multiple cells in section 1. I want to enable user to rearrange cells within section 1. User should not be able to move cell from section 1 to section 0. I am using following code but It is giving me errors... I tried searching on the web but I didn't got the answer so I am posting it here for help... override func collectionView(_ collectionView: UICollectionView, moveItemAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath) { let sourceSection = sourceIndexPath.section let destSection = destinationIndexPath.section if (sourceSection destSection) { let tempInputDataArray = inputDataArray.remove(at: sourceIndexPath.item) inputDataArray.insert(tempInputDataArray, at: destinationIndexPath.item) UserDefaults.standard.set(inputDataArray, forKey: "KeyForInputDataArray") for element in inputDataArray { print(element) } } else { } }
7
0
1.8k
Apr ’21
Refreshing / Reloading Data of Supplementary View (Header & Footer) for Collection View
I have deployed 2 Supplementary Views for Header and Footer views for my collection view. Header '0' has UILabel text which dynamically sets data dynamically after transitioning to push secondary view controller. But I am having problem that when UILabel in header loads again after returning and taking data from secondary view controller collection view get updated but Header and Footer Supplementary views has overlapping of old and new data...!!! How to fix overlapping of data and 'Reload Supplementary Views' for Header and Footer?
3
1
3.3k
Apr ’21