Updated Xcode to 10.0 , WhatsNewViewController.Theme now contains error "Missing argument backgroundColor" #98

Closed
opened 2025-10-14 16:01:07 -06:00 by navan · 0 comments
Owner

Originally created by @stshelton on 9/19/2018

Just updated to Xcode 10.0 and recieved this error "missing argument for paramater 'backgroundColor'" when trying to create theme of whatsNewController.

 let myTheme =  WhatsNewViewController.Theme { (configuration) in
    configuration.backgroundColor = UIHelper.BARODARKCOLOR
    configuration.titleView.titleFont = .systemFont(ofSize: 30, weight: .semibold)
    configuration.titleView.titleColor = .white
    configuration.titleView.animation = .slideDown
    
    configuration.itemsView.titleFont = .systemFont(ofSize: 20, weight: .semibold)
    configuration.itemsView.titleColor = .white
    configuration.itemsView.subtitleFont = .systemFont(ofSize: 17)
    configuration.itemsView.subtitleColor = .white
    configuration.itemsView.animation = .slideUp
    
    configuration.completionButton.titleFont = .systemFont(ofSize: 17, weight: .semibold)
    configuration.completionButton.titleColor = .white
    configuration.completionButton.backgroundColor = UIHelper.BAROCOLOR
    configuration.completionButton.cornerRadius = 8
    
    
    }

Swift Version: 4.0
WhatsNewKit Version: 1.0.2
Any suggestions or workarounds? I tried updating WhatsNewKit to latest version but latest version seemed to be for swift version 4.2 and id like to get my project to build before the switch to 4.2.

*Originally created by @stshelton on 9/19/2018* Just updated to Xcode 10.0 and recieved this error "missing argument for paramater 'backgroundColor'" when trying to create theme of whatsNewController. ``` let myTheme = WhatsNewViewController.Theme { (configuration) in configuration.backgroundColor = UIHelper.BARODARKCOLOR configuration.titleView.titleFont = .systemFont(ofSize: 30, weight: .semibold) configuration.titleView.titleColor = .white configuration.titleView.animation = .slideDown configuration.itemsView.titleFont = .systemFont(ofSize: 20, weight: .semibold) configuration.itemsView.titleColor = .white configuration.itemsView.subtitleFont = .systemFont(ofSize: 17) configuration.itemsView.subtitleColor = .white configuration.itemsView.animation = .slideUp configuration.completionButton.titleFont = .systemFont(ofSize: 17, weight: .semibold) configuration.completionButton.titleColor = .white configuration.completionButton.backgroundColor = UIHelper.BAROCOLOR configuration.completionButton.cornerRadius = 8 } ``` Swift Version: 4.0 WhatsNewKit Version: 1.0.2 Any suggestions or workarounds? I tried updating WhatsNewKit to latest version but latest version seemed to be for swift version 4.2 and id like to get my project to build before the switch to 4.2.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/WhatsNewKit#98
No description provided.