Code Monkey home page Code Monkey logo

dg-muscle-ios's People

Contributors

donggyushin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dg-muscle-ios's Issues

share today's exercise

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)
            }
        }
    }
}

add memo features

  • HistoryFormView ✅
    • add memo section ✅
    • change input parameter as ExerciseHistory ✅
  • MemoView
    • view
    • edit

logout, withdrawal

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)
            })
        }
    }
}
  1. add logout, withdrawal button to SettingView
  2. Use existing WithdrawalConfirmView to remove account

scroll animation effect

I think I saw some iOS 17 features that nice animation effects in scrollview.
Adjust in DiaryView

improve exercise guide

  • change presentation style from model to navigation
  • prevent to add duplicated exercise

Ability to delete profile picture

file: PhotoPickerView
branch: delete_profile_photo

  • can delete profile photo
  • use local is showing state for dismiss animation effect

tips section

Add Tips sections in SettingView.

  • add item How to use apple workout app
  • add item exercise

Fix exercise disappearing issue

Purpose

sometimes exercises disappeared after updating. find the reason and fix it.

Frequency

  • medium

reproduce

  • go to exercise list(ExerciseListView.swift)
  • randomly re-order exercise list and save

deploy

  1. prepare app screen shot
  2. prepare promotion texts
  3. deploy
  4. write readme
  5. manage branch

fix typo

There is typo. "DG-MSUCLE PROFILE"

fix record save bug

RecordFormView save button not working

ui not updated when @State var history: ExerciseHistory is updated in HistoryFormView

add loading when updating exercises

Improve

  • ExerciseListViewDependencyImpl
  • ExerciseFormDependencyImpl
  • ExerciseInfoContainerDependencyImpl

Improve loading, error, success feedback

  1. Group related states [(isShowingErrorView, errorMessage), (isShowingSuccessView, successMessage)]
  2. Add message to LoadingView

ExerciseListViewDependencyImpl

20231217

  1. change exercise form touch area ✅
  2. add one exercise info(pull up) ✅
  3. plan blind date
  4. see furnitures(hanger)

loading indicator, success indicator

Add loading indicator, success indicator views

  • Add LoadingView
  • Add SuccessView
  • Adjust to where is needed. At first, adjust where uploading profile photo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.