Category: software-development

Software development is the process of conceiving, specifying, designing, programming, documenting, testing, and bug fixing involved in creating and maintaining applications, frameworks, or other software components. Software development involves writing and maintaining the source code, but in a broader sense, it includes all processes from the conception of the desired software through to the final manifestation of the software, typically in a planned and structured process. Software development also includes research, new development, prototyping, modification, reuse, re-engineering, maintenance, or any other activities that result in software products.

  • How top open Facebook group page in Facebook app on iPhone using Swift and Xcode.

    Opening a Facebook group page in the Facebook app on the iPhone using Swift is really easy. I’m using Swift 5 and Xcode 11.6.

    You must need your Facebook Page integer id which looks like this 8794208798015.

    let fbPage = "fb://profile/" + FB_GROUP_ID // Your Facebook group id e.g 8794808798015
    let fbURL = URL(string:fbPage)
    let canOpenURL = UIApplication.shared.canOpenURL(fbURL!)
    if (canOpenURL) {
        UIApplication.shared.open(fbURL!, completionHandler: nil)
    }

    Also update your Info.plist file otherwise you will get error like this

    This app is not allowed to query for scheme
    Spread the love
  • FSCalendar Dark Mode issue for title color

    FSCalendar is a very good calendar library in Swift but it does not support dark mode, I’m using version 2.8.1.

    We can easily change all date color by one of its delegate’s FSCalendarDelegateAppearance func.

    func calendar(_ calendar: FSCalendar, appearance: FSCalendarAppearance, titleDefaultColorFor date: Date) -> UIColor? {
            
            let defaultColor = appearance.titleDefaultColor
            
            if #available(iOS 12.0, *) {
                if self.traitCollection.userInterfaceStyle == .dark {
                    return .orange
                } else {
                    return defaultColor
                }
            } else {
                return defaultColor
            }
            
        }

    Also, don’t forget to reload the calendar data

    override func willTransition(to newCollection: UITraitCollection, with coordinator: UIViewControllerTransitionCoordinator) {
            self.calendar?.reloadData()
        }
    Spread the love