NetNewsWire/iOS/UIKit Extensions/RoundedProgressView.swift
2024-04-07 17:06:39 -07:00

21 lines
406 B
Swift

//
// RoundedProgressView.swift
// NetNewsWire
//
// Created by Maurice Parker on 10/29/19.
// Copyright © 2019 Ranchero Software. All rights reserved.
//
import UIKit
class RoundedProgressView: UIProgressView {
override func layoutSubviews() {
super.layoutSubviews()
for subview in subviews {
subview.layer.masksToBounds = true
subview.layer.cornerRadius = bounds.height / 2.0
}
}
}