Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Update ButtonLayout sizeOf(image:) for iOS13+ #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Sources/Layouts/ButtonLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ open class ButtonLayout<Button: UIButton>: BaseLayout<Button>, ConfigurableLayou
#if os(tvOS)
return CGSize(width: 37, height: 46)
#else
return CGSize(width: 22, height: 22)
if #available(iOS 13.0, *) {
return CGSize(width: 25, height: 24)
} else {
return CGSize(width: 22, height: 22)
}
#endif
}
}
Expand Down