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:
Bryan Montz
2023-07-16 08:00:50 -05:00
committed by William Casarin
parent 16c86c1d1c
commit 0c627ae0a0
10 changed files with 11 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ struct EventDetailBar: View {
@ObservedObject var bar: ActionBarModel
init (state: DamusState, target: String, target_pk: String) {
init(state: DamusState, target: String, target_pk: String) {
self.state = state
self.target = target
self.target_pk = target_pk

View File

@@ -68,7 +68,7 @@ struct BannerImageView: View {
@State var banner: String?
init (pubkey: String, profiles: Profiles, disable_animation: Bool, banner: String? = nil) {
init(pubkey: String, profiles: Profiles, disable_animation: Bool, banner: String? = nil) {
self.pubkey = pubkey
self.profiles = profiles
self._banner = State(initialValue: banner)

View File

@@ -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

View File

@@ -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

View File

@@ -14,7 +14,7 @@ struct UserRelaysView: View {
@State var relay_state: [(String, Bool)]
@State private var showAddButton = false
init (state: DamusState, relays: [String]) {
init(state: DamusState, relays: [String]) {
self.state = state
self.relays = relays
let relay_state = UserRelaysView.make_relay_state(pool: state.pool, relays: relays)