Looking for help with GUI on FreeAPS Loop

Hi Everyone!
I am using a version of the FreeAPS Loop on iPhone. I am wondering if any of the Loop gurus here can help me with something…

This is a screenshot of my iPhone when I bolus. I am trying to figure out a way to make the bolus amount text bigger here, just while bolusing. (The part I boxed in red below.)

Just to make it easier to see when I do a bolus! You shouldn’t need to have your glasses on just to do a bolus, right? :grinning:

I know where the string is set, but can’t figure out how to make it bigger during the bolus.

From this file:

private func updateProgress() {
guard !disableUpdates, let totalUnits = totalUnits, let unit = unit else {

    let totalUnitsQuantity = HKQuantity(unit: unit, doubleValue: totalUnits)
    let totalUnitsString = quantityFormatter.string(from: totalUnitsQuantity, for: unit) ?? ""

    if let deliveredUnits = deliveredUnits {
        let deliveredUnitsQuantity = HKQuantity(unit: unit, doubleValue: deliveredUnits)
        let deliveredUnitsString = quantityFormatter.string(from: deliveredUnitsQuantity, for: unit) ?? ""

        progressLabel.text = String(format: NSLocalizedString("Bolused %1$@ of %2$@", comment: "The format string for bolus progress. (1: delivered volume)(2: total volume)"), deliveredUnitsString, totalUnitsString)

        let progress = deliveredUnits / totalUnits
        UIView.animate(withDuration: 0.3) {
            self.progressIndicator.progress = progress
    } else {
        progressLabel.text = String(format: NSLocalizedString("Bolusing %1$@", comment: "The format string for bolus in progress showing total volume. (1: total volume)"), totalUnitsString)

Not sure who all the Loop experts are. I know these are a few of the many here who do Loop or who have done it in the past. @dm61 , @bkh , @CatLady , @Trying , @ClaudnDaye


Just trying to read the code snip, it looks like you’ve found the code that decides the text characters to print, and stuffs them into the string at progressLabel.text, but it’s not clear where the code is that renders that text string out onto your screen, with characteristics like size, font, and boldness. I’d say keep looking for some place that declares the properties of the progressLabel, and code that somehow actually prints out the progressLabel contents. Who knows, maybe the progressLabel has properties other than “text” that store attributes like size and font and boldness and so on, initialized once somewhere.

1 Like

Here is what I think you may try. In search, enter progressLabel and click on the result that comes with a little pen&brush symbol. You should then see what is called a “View” where properties of the label can then be adjusted in the menus on the right-hand side. For example, you can see System Bold 15.0 is set there. Attached is a screenshot from Xcode that may help.

I have never messed with Views so I do not know if e.g. simply changing the font size would work or if you’d need to do more.


Thanks a bunch, I will give it a try!

I am not sure if I am the only one who has this issue, but I just want to see the amount number a little bigger! I just always worry about giving the wrong amount.