mirror of
https://github.com/lifution/FSPopoverView.git
synced 2026-10-17 05:20:36 +08:00
Add comments.
This commit is contained in:
Generated
BIN
Binary file not shown.
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user