See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| /** | |
| * MacEditorTextView | |
| * Copyright (c) Thiago Holanda 2020-2021 | |
| * https://bsky.app/profile/tholanda.com | |
| * | |
| * (the twitter account is now deleted, please, do not try to reach me there) | |
| * https://twitter.com/tholanda | |
| * | |
| * MIT license | |
| */ |
| import SwiftUI | |
| // MARK: - ProgressRingScreen | |
| /// A screen demonstrating a circular progress ring with a slider and control panel. | |
| /// Uses a `ProgressRingViewModel` to track and animate the progress state. | |
| struct ProgressRingScreen: View { | |
| /// A view model that tracks and animates the progress value. | |
| @State var viewModel = ProgressRingViewModel() |
| // Copyright © 2025 MING | |
| // MIT License | |
| import SwiftUI | |
| struct ContentView: View { | |
| @State private var colorful: Bool = true | |
| @State private var dragLocation: CGPoint = .zero | |
| var body: some View { |
| import UIKit | |
| // You many want to run this in the background | |
| func getIPs(dnsName: String) -> String? { | |
| let host = CFHostCreateWithName(nil, dnsName as CFString).takeRetainedValue() | |
| CFHostStartInfoResolution(host, .addresses, nil) | |
| var success: DarwinBoolean = false | |
| if let addresses = CFHostGetAddressing(host, &success)?.takeUnretainedValue() as NSArray? { | |
| for case let theAddress as NSData in addresses { | |
| var hostname = [CChar](repeating: 0, count: Int(NI_MAXHOST)) |