Swift cleanup: "init (" -> "init("
Signed-off-by: Bryan Montz <bryanmontz@me.com> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
William Casarin
parent
16c86c1d1c
commit
0c627ae0a0
@@ -29,7 +29,7 @@ struct EditMetadataView: View {
|
||||
@StateObject var profileUploadObserver = ImageUploadingObserver()
|
||||
@StateObject var bannerUploadObserver = ImageUploadingObserver()
|
||||
|
||||
init (damus_state: DamusState) {
|
||||
init(damus_state: DamusState) {
|
||||
self.damus_state = damus_state
|
||||
let data = damus_state.profiles.lookup(id: damus_state.pubkey)
|
||||
self.profile = data
|
||||
|
||||
@@ -75,7 +75,7 @@ struct ProfilePicView: View {
|
||||
|
||||
@State var picture: String?
|
||||
|
||||
init (pubkey: String, size: CGFloat, highlight: Highlight, profiles: Profiles, disable_animation: Bool, picture: String? = nil) {
|
||||
init(pubkey: String, size: CGFloat, highlight: Highlight, profiles: Profiles, disable_animation: Bool, picture: String? = nil) {
|
||||
self.pubkey = pubkey
|
||||
self.profiles = profiles
|
||||
self.size = size
|
||||
|
||||
Reference in New Issue
Block a user