donggyushin / dg-muscle-ios Goto Github PK
View Code? Open in Web Editor NEWHelps you measure exercise and apply progressive overload.
License: MIT License
Helps you measure exercise and apply progressive overload.
License: MIT License
Make a feature that can share today's exercise contents as a form of image file.
User can save today's exercise record as image file and also can share.
code snippet
import SwiftUI
import UIKit
extension UIView {
func snapshot() -> UIImage? {
let renderer = UIGraphicsImageRenderer(bounds: bounds)
return renderer.image { context in
layer.render(in: context.cgContext)
}
}
}
// Usage within your SwiftUI view
struct ContentView: View {
var body: some View {
ScrollView {
// Your content view here
}
.onAppear {
DispatchQueue.main.async {
let hostingController = UIHostingController(rootView: self)
// Make sure to size the hostingController's view to fit all content
// You may need to adjust this based on your content size
let image = hostingController.view.snapshot()
// Handle the image (save or share)
}
}
}
}
Fix wrong date showing issue
Add logout, withdrawal features
branch: logout_withdrawal
With Using
final class Authenticator {
func signOut() throws {
try Auth.auth().signOut()
}
func updateUser(displayName: String?, photoURL: URL?) async throws {
let changeRequest = Auth.auth().currentUser?.createProfileChangeRequest()
changeRequest?.displayName = displayName
changeRequest?.photoURL = photoURL
try await changeRequest?.commitChanges()
}
func withDrawal() async -> Error? {
return await withCheckedContinuation { continuation in
Auth.auth().currentUser?.delete(completion: { error in
continuation.resume(returning: error)
})
}
}
}
I think I saw some iOS 17 features that nice animation effects in scrollview.
Adjust in DiaryView
Fix this issue by using local isShowing state in each presented view.
view: MonthlyChartView
branch: monthlychartview_dismiss_animation
file: PhotoPickerView
branch: delete_profile_photo
Add Tips sections in SettingView.
How to use apple workout app
exercise
sometimes exercises disappeared after updating. find the reason and fix it.
let's use ai image generator for this opportunity
add deadlift and benchpress in ExerciseGuideListView
There is typo. "DG-MSUCLE PROFILE"
RecordFormView save button not working
ui not updated when @State var history: ExerciseHistory
is updated in HistoryFormView
Make disk cache datas of WorkoutMetaData
Add loading indicator, success indicator views
Add "Record" quick action.
It leads user to HistoryForm page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.