Skip to content

Conversation

@yurim830
Copy link
Collaborator

@yurim830 yurim830 commented Apr 27, 2025

🐿️ Pull Requests

🪵 작업 브랜치

🥔 작업 내용

1. Deprecated 태그 처리

언어별로 kerning을 다르게 적용하기 용이한 형태로 struct를 새로 만들었습니다.
이로 인해 프로젝트 전반에 적용된 폰트를 일괄적으로 수정하기가 어려웠고, (2.0에서 수정될 뷰까지도 일일이 수정하는 건 리소스 낭비라 판단)
기존 스타일에 Deprecated 태그를 달아두고, 새로운 스타일을 만들었습니다.
@cirtuare 작업하시면서 Deprecated된 메소드를 사용하는 컴포넌트를 발견하실 때마다 새로 추가한 메소드로 변경해주시면 좋을 것 같습니다!

2. 언어별 다른 kerning 처리

  • 한글은 -2.5%, 그 외는 0%로 설정되도록 했습니다.
  • 적용된 곳: String.attributedString(_:_:), UILabel.setText(), UILabel.setLabel(), UILabel.setPartialText(), UIButton.setAttributedTitle(), UIButton.setPartialTitle()

3. Global Components 스타일 업데이트

NavigationBar, BaseErrorView, ACTextField, ACToast, LoginView와 같은 global 컴포넌트는 스타일 업데이트 해두었습니다.

4. 앱 아이콘 수정했습니다.

💥 To be sure

  • 모든 뷰가 잘 실행되는지 다시 한 번 체크해주세요 !

🌰 Resolve issue

@yurim830 yurim830 added this to the Sprint - 3 milestone Apr 27, 2025
@yurim830 yurim830 requested review from cirtuare and Copilot April 27, 2025 14:24
@yurim830 yurim830 self-assigned this Apr 27, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the font styling throughout the project to reflect the changes from Acon 2.0.0, designating the old font APIs as deprecated and introducing new styling methods while updating related layout constraints. Key changes include replacing ACFont with OldACFont in various view and extension files, modifying layout constraints in LocalVerificationView, and introducing new methods supporting the updated ACFontType-based API.

Reviewed Changes

Copilot reviewed 27 out of 29 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
OnboardingViewController.swift Replaced ACFont usages with OldACFont references in UI element styling.
SmallBoxViewCell.swift, LongBoxViewCell.swift, BigBoxViewCell.swift Updated font styling to reference OldACFont for deprecated styles.
AnalyzingViewController.swift Adjusted font styling in label configuration to use OldACFontStyleType.
LocalVerificationView.swift Updated trailing constraint value and added contentHorizontalAlignment for button configuration.
BaseNavViewController.swift Revised method signatures to incorporate OldACFontStyleType.
OldACFontStyle.swift Deprecated ACFont and ACFontStyleType definitions in favor of new naming.
ACFontType.swift Introduced new API for font styling.
UILabel+.swift, UIButton+.swift, String+.swift Added new methods for styling labels, buttons, and strings using the new ACFontType API; deprecated methods using the old API now include warnings.
ACTextField.swift, Character+.swift, and others Consistent updates replacing the old font definitions with their deprecated counterparts.
Files not reviewed (2)
  • ACON-iOS/ACON-iOS.xcodeproj/project.pbxproj: Language not supported
  • ACON-iOS/ACON-iOS/Global/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json: Language not supported
Comments suppressed due to low confidence (1)

ACON-iOS/ACON-iOS/Presentation/LocalVerification/View/LocalVerificationView.swift:33

  • The trailing constraint has been changed from a computed value to a hardcoded constant (16); please confirm that this change aligns with the design requirements and does not negatively affect layout on different devices.
trailing: ScreenUtils.widthRatio*340-211)

Comment on lines 79 to 80
print("😡String+ Font lineHeight: \(style.fontStyle.lineHeight)")

Copy link

Copilot AI Apr 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This debug print statement appears to be left over from testing; consider removing it to avoid unintended logging in production.

Suggested change
print("😡String+ Font lineHeight: \(style.fontStyle.lineHeight)")
// (Line removed)

Copilot uses AI. Check for mistakes.
@yurim830 yurim830 requested a review from Copilot April 27, 2025 17:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the font style system across the iOS project by deprecating the old ACFontStyleType and integrating the new ACFontType while also making various UI layout and style adjustments (including kerning updates and an updated app icon). Key changes include:

  • Replacing deprecated font styles with the new ACFontType (and related OldACFont for deprecated cases) in multiple view controllers and UI components.
  • Adjusting kerning values and layout constraints in error views, modal views, text fields, and buttons.
  • Refining string literals for UI copy consistency.

Reviewed Changes

Copilot reviewed 34 out of 38 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Presentation/Base/BaseNavViewController.swift Updated font style parameters and button titles from deprecated values to new ACFontType values.
Presentation/Base/BaseErrorView.swift Adjusted layout constraints and replaced old font styles with updated font styles and colors.
Global/Utils/Enums/OldACFontStyle.swift Renamed the old font style enum and marked it as deprecated for future removal.
Global/Utils/Enums/ACFontType.swift Introduced the new ACFontType enum with updated font style definitions.
Global/Utils/Enums/ACFontStyleType.swift Removed the deprecated ACFontStyleType file.
Global/UIComponents/LoginModal/View/LoginModalView.swift Refactored font styles and layout properties for login modal components.
Global/UIComponents/CustomAlert/View/*.swift Replaced font style usage with deprecated OldACFont for alert components.
Global/UIComponents/ACToastController.swift Updated the toast view style from deprecated to new font style settings.
Global/UIComponents/ACTextField.swift Changed the fontStyle property type and updated text field attributes accordingly.
Global/Literals/StringLiterals.swift Revised UI text for clarity by removing an unnecessary line break and adjusting punctuation spacing.
Global/Extensions/* Updated UILabel, UIButton, and String extensions to support both deprecated and new font style APIs.
Global/Extensions/Character+.swift Added an extension to check for Korean characters used in kerning calculations.
Files not reviewed (4)
  • ACON-iOS/ACON-iOS.xcodeproj/project.pbxproj: Language not supported
  • ACON-iOS/ACON-iOS/Global/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json: Language not supported
  • ACON-iOS/ACON-iOS/Global/Resources/Assets.xcassets/Icons/Basic 2.0/Contents.json: Language not supported
  • ACON-iOS/ACON-iOS/Global/Resources/Assets.xcassets/Icons/Basic 2.0/ic_clear.imageset/Contents.json: Language not supported

$0.defaultTextAttributes = [
.font: fontStyle.font,
.kern: fontStyle.kerning,
.font: ACFontType.t4(.semibold).fontStyle.font,
Copy link

Copilot AI Apr 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using ACFontType.t4(.semibold) here overrides the intended instance property 'fontStyle'. Consider using the font from the 'fontStyle' property instead to respect the provided configuration.

Suggested change
.font: ACFontType.t4(.semibold).fontStyle.font,
.font: fontStyle.font,

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@yurim830 yurim830 changed the title [SETTING] 폰트스타일 업데이트, 앱 아이콘 변경 (#112) [SETTING] (2.0) 스타일 업데이트 - 폰트, global 컴포넌트, 앱 아이콘 (#112) Apr 28, 2025
Copy link
Contributor

@cirtuare cirtuare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿잡굿잡 체고다 !!!!

그리고 혹시 Global>Resources>Fonts에 있는 Pretendard-Medium 삭제해주실 수 있나요??

Comment on lines 90 to 93
enum Language {
case korean
case other
}
Copy link
Contributor

@cirtuare cirtuare Apr 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐿️🐿️
요건 Global>Enums에 LanguageType으로 넣고, String extension을 다시 하나의 extension으로 합치는 건 어떤가요? 나누는 게 불필요할 수 있을 것 같아 말씀드립니다 !

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반영했습니다!

@yurim830 yurim830 merged commit f46b34d into develop Apr 28, 2025
@yurim830 yurim830 changed the title [SETTING] (2.0) 스타일 업데이트 - 폰트, global 컴포넌트, 앱 아이콘 (#112) [SETTING] (Acon2.0) 스타일 업데이트 - 폰트, global 컴포넌트, 앱 아이콘 (#112) Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SETTING] (Acon2.0) 스타일 업데이트 - 폰트, global 컴포넌트, 앱 아이콘 (#112)

3 participants