Add comments.

This commit is contained in:
Sheng
2022-04-13 13:46:36 +08:00
parent ba583c45a2
commit 062d22bd1b
4 changed files with 21 additions and 5 deletions
@@ -22,7 +22,7 @@
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xfz-lV-QsB">
<rect key="frame" x="154" y="390.66666666666669" width="67" height="31"/>
<color key="backgroundColor" systemColor="systemMintColor"/>
<color key="backgroundColor" systemColor="systemGray5Color"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button"/>
<connections>
@@ -43,8 +43,8 @@
</scene>
</scenes>
<resources>
<systemColor name="systemMintColor">
<color red="0.0" green="0.7803921568627451" blue="0.74509803921568629" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<systemColor name="systemGray5Color">
<color red="0.89803921568627454" green="0.89803921568627454" blue="0.91764705882352937" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>
+2 -1
View File
@@ -28,10 +28,11 @@ class ViewController: UIViewController {
guard let button = sender as? UIButton else { return }
let popoverView = FSPopoverView()
popoverView.dataSource = self
popoverView.borderWidth = 2.0
// popoverView.borderWidth = 1.0
popoverView.borderColor = .red
popoverView.shadowColor = .green
popoverView.shadowRadius = 3.0
popoverView.shadowOpacity = 0.6
// popoverView.arrowDirection = .right
// popoverView.autosetsArrowDirection = false
popoverView.showTo(button)