let heartLiveView = HeartLiveView.init(frame: CGRect.init(x: 10, y: 100, width: self.view.frame.width - 20, height: 150))
self.view.addSubview(heartLiveView)
timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { (timer) in
let heartRateMappValue = Float.randomCGFloatNumber(lower: -0.5, upper: 0.5)
print(heartRateMappValue)
heartLiveView.drawRateWithPoint(NSNumber.init(value: heartRateMappValue))
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Xiahaiquan/HQHeartRateWaveform
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
根据心率映射值,画出心率波形图。
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published