Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
folium-app
GitHub Repository: folium-app/Folium
Path: blob/a-new-beginning/Folium-iOS/Controllers/WhatsNewControllers.swift
2 views
//
//  WhatsNewControllers.swift
//  Folium-iOS
//
//  Created by Jarrod Norwell on 8/10/2025.
//

import OnboardingKit
import UIKit

class AudioController : OnboardingController {
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        if !animationHasPlayed && configuration.useCustomSymbolEffect {
            guard let imageView else {
                return
            }
            
            if #available(iOS 18, *) {
                imageView.addSymbolEffect(.variableColor.cumulative.dimInactiveLayers,
                                          options: .repeat(.periodic))
            }
            
            animationHasPlayed.toggle()
        }
    }
}