NetNewsWire/iOS/UIKit Extensions/RoundedProgressView.swift

21 lines
406 B
Swift
Raw Normal View History

//
// 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()
2024-04-08 02:06:39 +02:00
for subview in subviews {
subview.layer.masksToBounds = true
subview.layer.cornerRadius = bounds.height / 2.0
}
}
}