Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PhoneManager
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yang
PhoneManager
Commits
0328cde7
Commit
0328cde7
authored
May 19, 2025
by
yqz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
446e6dd9
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
4 deletions
+12
-4
PMShowImgCell.swift
PhoneManager/Class/Page/Secret/Cell/PMShowImgCell.swift
+1
-0
PMShowImgVideoController.swift
...eManager/Class/Page/Secret/PMShowImgVideoController.swift
+2
-0
SettingViewController.swift
.../Page/Settings/ViewController/SettingViewController.swift
+0
-2
WidgetViewController.swift
PhoneManager/Class/Page/Widget/WidgetViewController.swift
+1
-1
PMScaleImageView.swift
...Manager/Class/Tool/Class/showImage/PMScaleImageView.swift
+4
-0
Value+Extension.swift
...eManager/Class/Tool/Extension.swift/Value+Extension.swift
+1
-1
PMFaceIDManger.swift
PhoneManager/Class/Tool/Face ID/PMFaceIDManger.swift
+3
-0
No files found.
PhoneManager/Class/Page/Secret/Cell/PMShowImgCell.swift
View file @
0328cde7
...
...
@@ -70,6 +70,7 @@ class PMShowImgCell: UICollectionViewCell {
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
setup
()
backgroundColor
=
.
clear
clipsToBounds
=
true
}
...
...
PhoneManager/Class/Page/Secret/PMShowImgVideoController.swift
View file @
0328cde7
...
...
@@ -92,6 +92,7 @@ class PMShowImgVideoController: BaseViewController {
col
.
delegate
=
self
;
col
.
dataSource
=
self
;
col
.
showsHorizontalScrollIndicator
=
false
col
.
backgroundColor
=
.
clear
col
.
isPagingEnabled
=
true
col
.
register
(
PMShowImgCell
.
self
,
forCellWithReuseIdentifier
:
PMShowImgCellID
)
col
.
register
(
PMShowVideoCell
.
self
,
forCellWithReuseIdentifier
:
PMShowVideoCellID
)
...
...
@@ -108,6 +109,7 @@ class PMShowImgVideoController: BaseViewController {
let
col
=
UICollectionView
(
frame
:
CGRect
(),
collectionViewLayout
:
flowlayout
)
col
.
delegate
=
self
;
col
.
dataSource
=
self
;
col
.
register
(
PMShowItemCell
.
self
,
forCellWithReuseIdentifier
:
PMShowItemCellID
)
col
.
register
(
UICollectionViewCell
.
self
,
forCellWithReuseIdentifier
:
"UICollectionViewCell"
)
col
.
showsHorizontalScrollIndicator
=
false
...
...
PhoneManager/Class/Page/Settings/ViewController/SettingViewController.swift
View file @
0328cde7
...
...
@@ -46,12 +46,10 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
self
.
titleView
.
titleLabel
.
textColor
=
UIColor
(
red
:
0.2
,
green
:
0.2
,
blue
:
0.2
,
alpha
:
1
)
modelData
=
getSettingViewInfo
()
self
.
view
.
addSubview
(
tableView
)
self
.
tableView
.
reloadData
()
}
override
func
viewWillDisappear
(
_
animated
:
Bool
)
{
super
.
viewWillDisappear
(
animated
)
self
.
tableView
.
reloadData
()
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
...
...
PhoneManager/Class/Page/Widget/WidgetViewController.swift
View file @
0328cde7
...
...
@@ -208,7 +208,7 @@ class WidgetViewController: BaseViewController {
private
lazy
var
setWidgetBtn
:
UIButton
=
{
let
btn
=
UIButton
(
type
:
.
custom
)
btn
.
setTitle
(
"Set Widget"
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
s
ystemFont
(
ofSize
:
16
)
btn
.
titleLabel
?
.
font
=
UIFont
.
boldS
ystemFont
(
ofSize
:
16
)
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
setWidgetTouch
)
,
for
:
.
touchUpInside
)
view
.
addSubview
(
btn
)
...
...
PhoneManager/Class/Tool/Class/showImage/PMScaleImageView.swift
View file @
0328cde7
...
...
@@ -29,6 +29,10 @@ class PMScaleImageView: UIView , UIScrollViewDelegate {
size
.
width
=
self
.
width
size
.
height
=
size
.
height
*
(
self
.
width
/
(
self
.
icon
?
.
size
.
width
??
1
))
}
if
size
.
height
>
self
.
height
{
size
.
height
=
self
.
height
size
.
width
=
size
.
width
*
(
self
.
height
/
(
self
.
icon
?
.
size
.
height
??
1
))
}
self
.
showImg
.
snp
.
remakeConstraints
({
make
in
make
.
left
.
equalToSuperview
()
.
offset
((
self
.
width
-
size
.
width
)
/
2.0
)
make
.
top
.
equalToSuperview
()
.
offset
((
self
.
height
-
size
.
height
)
/
2.0
)
...
...
PhoneManager/Class/Tool/Extension.swift/Value+Extension.swift
View file @
0328cde7
...
...
@@ -179,7 +179,7 @@ class HapticManager {
}
private
lazy
var
generator
:
UIImpactFeedbackGenerator
=
{
let
genter
=
UIImpactFeedbackGenerator
(
style
:
.
heavy
)
let
genter
=
UIImpactFeedbackGenerator
(
style
:
.
medium
)
genter
.
prepare
()
return
genter
}()
...
...
PhoneManager/Class/Tool/Face ID/PMFaceIDManger.swift
View file @
0328cde7
...
...
@@ -16,6 +16,9 @@ class PMFaceIDManger: NSObject {
}
class
func
request
()
->
Bool
{
if
isAvailable
()
==
false
{
return
false
}
let
context
=
LAContext
()
return
context
.
biometricType
==
.
faceID
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment