-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/improvement profile/main (#72)
* Feature/improvement profile/my profile view (#69) * feat: delete existing view * feat: delete myprofileview navigation * fix: DI * fix: DI * feat: present profileview * feat: pass binding * feat: draggable profile view * Feature/improvement profile/view UI (#70) * feat * feat * feat * feat * feat * feat * chore * Feature/improvement profile/view UI (#71) * feat * feat * feat * feat * feat * feat * chore * feat * feat * feat * feat: friend loading * chore * feat: FullScreenImageView * feat: binding url * feat * delete friend profile view * feat * feat * feat: navigation * chore * chore * chore * chore * feat: MyProfileEditView * feat: DI * feat: viewModel * feat: BackgroundImageView * feat: refactor name * feat: DI * feat: PhotosPicker * feat: delete legacy * feat: init background image * feat: update background photo * feat: add cancel button * feat: configure user image * feat: profile image view * chore * feat: WhiteUnderlineTextLabel * feat: displaying display name * feat: ProfileTextInputView * feat: focus * feat: edit profile * chore: update fastlane * feat: change ui * fix: animation * fix: animation * fix: animation * fix: animation * feat: present fullscreen image on friend profile * feat: fetch link * feat: ui * feat: MakeStringFromURLUsecase * feat: delete background image * feat: delete photo * chore * feat: update profile * chore * chore * fix test * Feature/improvement profile/button (#73) * myview * fix: friend list * chore
- Loading branch information
1 parent
dfd32d8
commit b2618e5
Showing
43 changed files
with
1,636 additions
and
553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
source "https://rubygems.org" | ||
|
||
gem "fastlane", "~>2.221.0" | ||
gem "fastlane", "~>2.222.0" | ||
# TODO: update ruby version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
dg-muscle-ios/Tests/User/MakeStringFromURLUsecaseTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// MakeStringFromURLUsecaseTests.swift | ||
// AppTests | ||
// | ||
// Created by 신동규 on 8/3/24. | ||
// | ||
|
||
import XCTest | ||
import Domain | ||
|
||
final class MakeStringFromURLUsecaseTests: XCTestCase { | ||
|
||
let usecase = MakeStringFromURLUsecase() | ||
|
||
func testHttps() { | ||
let url = URL(string: "https://www.naver.com")! | ||
XCTAssertEqual("www.naver.com", usecase.implement(url: url)) | ||
} | ||
|
||
func testHttp() { | ||
let url = URL(string: "http://www.naver.com")! | ||
XCTAssertEqual("www.naver.com", usecase.implement(url: url)) | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
dg-muscle-ios/Tests/User/MakeURLFromStringUsecaseTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// MakeURLFromStringUsecaseTests.swift | ||
// AppTests | ||
// | ||
// Created by 신동규 on 8/3/24. | ||
// | ||
|
||
import XCTest | ||
import Domain | ||
|
||
final class MakeURLFromStringUsecaseTests: XCTestCase { | ||
|
||
let usecase = MakeURLFromStringUsecase() | ||
|
||
func testWithoutPrefix() { | ||
XCTAssertNotNil(usecase.implement(link: "www.naver.com")) | ||
} | ||
|
||
func testWithPrefix() { | ||
XCTAssertNotNil(usecase.implement(link: "https://www.naver.com")) | ||
XCTAssertNotNil(usecase.implement(link: "http://www.naver.com")) | ||
} | ||
|
||
func testEmpty() { | ||
XCTAssertNil(usecase.implement(link: "")) | ||
} | ||
|
||
func testFail() { | ||
XCTAssertNil(usecase.implement(link: " ")) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
dg-muscle-ios/sources/Domain/Friend/Usecase/SubscribeFetchingFriendLoadingUsecase.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// SubscribeFetchingFriendLoadingUsecase.swift | ||
// Domain | ||
// | ||
// Created by 신동규 on 7/29/24. | ||
// | ||
|
||
import Foundation | ||
import Combine | ||
|
||
public final class SubscribeFetchingFriendLoadingUsecase { | ||
let friendRepository: FriendRepository | ||
|
||
public init(friendRepository: FriendRepository) { | ||
self.friendRepository = friendRepository | ||
} | ||
|
||
public func implement() -> AnyPublisher<Bool, Never> { | ||
friendRepository.loading | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
dg-muscle-ios/sources/Domain/User/Usecase/MakeStringFromURLUsecase.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// MakeStringFromURLUsecase.swift | ||
// Domain | ||
// | ||
// Created by 신동규 on 8/3/24. | ||
// | ||
|
||
import Foundation | ||
|
||
public final class MakeStringFromURLUsecase { | ||
public init() { } | ||
|
||
public func implement(url: URL) -> String { | ||
var result: String = url.absoluteString | ||
|
||
let http = "http://" | ||
let https = "https://" | ||
|
||
var prefix: String? | ||
|
||
if result.hasPrefix(http) { | ||
prefix = http | ||
} | ||
|
||
if result.hasPrefix(https) { | ||
prefix = https | ||
} | ||
|
||
if let prefix { | ||
result.removeFirst(prefix.count) | ||
} | ||
|
||
return result | ||
} | ||
} |
Oops, something went wrong.