We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
애플개발자 참고문서
class ButtonViewController: UIViewController { let button = UIButton() override func viewDidLoad() { super.viewDidLoad() button.frame = CGRect(x: 0, y: 0, width: 300, height: 50) button.center = view.center button.configurationUpdateHandler = { btn in if btn.isHighlighted { btn.configuration?.baseBackgroundColor = .systemMint btn.configuration?.showsActivityIndicator = false } } button.configuration = .jackStyle() button.addTarget(self, action: #selector(buttonTap3), for: .touchUpInside) view.addSubview(button) } } @available(iOS 15.0, *) extension UIButton.Configuration { static func jackStyle() -> UIButton.Configuration { var configuration = UIButton.Configuration.filled() configuration.title = "SeSAC" configuration.subtitle = "로그인 없이 둘러보기" configuration.titleAlignment = .center configuration.image = UIImage(systemName: "star.fill") configuration.baseForegroundColor = .white //글씨체 색 configuration.baseBackgroundColor = .systemPink //배경 색 configuration.imagePadding = 8 configuration.imagePlacement = .trailing configuration.cornerStyle = .capsule configuration.showsActivityIndicator = true return configuration } }
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
iOS 15 Button
바뀐점
주의
Pop Up Button
애플개발자 참고문서
예제로 직접 구현해보기
The text was updated successfully, but these errors were encountered: